1/* 2 * Copyright (C) 2007, 2008, 2009 Holger Hans Peter Freyther 3 * Copyright (C) 2008 Jan Michael C. Alonzo 4 * Copyright (C) 2008 Collabora Ltd. 5 * Copyright (C) 2010 Igalia S.L. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public License 18 * along with this library; see the file COPYING.LIB. If not, write to 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23#ifndef webkitwebsettingsprivate_h 24#define webkitwebsettingsprivate_h 25 26#include "webkitwebsettings.h" 27#include <wtf/text/CString.h> 28 29extern "C" { 30 31struct _WebKitWebSettingsPrivate { 32 CString defaultEncoding; 33 CString cursiveFontFamily; 34 CString defaultFontFamily; 35 CString fantasyFontFamily; 36 CString monospaceFontFamily; 37 CString sansSerifFontFamily; 38 CString serifFontFamily; 39 guint defaultFontSize; 40 guint defaultMonospaceFontSize; 41 guint minimumFontSize; 42 guint minimumLogicalFontSize; 43 gboolean enforce96DPI; 44 gboolean autoLoadImages; 45 gboolean autoShrinkImages; 46 gboolean respectImageOrientation; 47 gboolean printBackgrounds; 48 gboolean enableScripts; 49 gboolean enablePlugins; 50 gboolean resizableTextAreas; 51 CString userStylesheetURI; 52 gfloat zoomStep; 53 gboolean enableDeveloperExtras; 54 gboolean enablePrivateBrowsing; 55 gboolean enableSpellChecking; 56 CString spellCheckingLanguages; 57 gboolean enableCaretBrowsing; 58 gboolean enableHTML5Database; 59 gboolean enableHTML5LocalStorage; 60 CString html5LocalStorageDatabasePath; 61 gboolean enableXSSAuditor; 62 gboolean enableSpatialNavigation; 63 gboolean enableFrameFlattening; 64 CString userAgent; 65 gboolean javascriptCanOpenWindowsAutomatically; 66 gboolean javascriptCanAccessClipboard; 67 gboolean enableOfflineWebApplicationCache; 68 WebKitEditingBehavior editingBehavior; 69 gboolean enableUniversalAccessFromFileURIs; 70 gboolean enableFileAccessFromFileURIs; 71 gboolean enableDOMPaste; 72 gboolean tabKeyCyclesThroughElements; 73 gboolean enableDefaultContextMenu; 74 gboolean enableSiteSpecificQuirks; 75 gboolean enablePageCache; 76 gboolean autoResizeWindow; 77 gboolean enableJavaApplet; 78 gboolean enableHyperlinkAuditing; 79 gboolean enableFullscreen; 80 gboolean enableDNSPrefetching; 81 gboolean enableWebgl; 82 gboolean enableMediaStream; 83 gboolean enableWebAudio; 84 gboolean enableAcceleratedCompositing; 85 gboolean enableSmoothScrolling; 86 gboolean enableCSSShaders; 87 gboolean mediaPlaybackRequiresUserGesture; 88 gboolean mediaPlaybackAllowsInline; 89 gboolean enableDisplayOfInsecureContent; 90 gboolean enableRunningOfInsecureContent; 91}; 92 93WEBKIT_API void webkit_web_settings_add_extra_plugin_directory(WebKitWebView*, const gchar* directory); 94 95WEBKIT_API char* webkitWebSettingsUserAgentForURI(WebKitWebSettings*, const gchar* uri); 96 97GSList* webkitWebViewGetEnchantDicts(WebKitWebView*); 98 99} 100 101#endif 102