Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webkit/glue/webpreferences.h

Issue 20101: Add a command line option --disable-web-security. People can use this option... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A struct for managing webkit's settings. 5 // A struct for managing webkit's settings.
6 // 6 //
7 // Adding new values to this class probably involves updating 7 // Adding new values to this class probably involves updating
8 // WebViewImpl::SetPreferences, common/render_messages.h, and 8 // WebViewImpl::SetPreferences, common/render_messages.h, and
9 // browser/profile.cc. 9 // browser/profile.cc.
10 10
11 #ifndef WEBKIT_GLUE_WEBPREFERENCES_H__ 11 #ifndef WEBKIT_GLUE_WEBPREFERENCES_H__
12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ 12 #define WEBKIT_GLUE_WEBPREFERENCES_H__
13 13
14 #include <string> 14 #include <string>
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 16
17 struct WebPreferences { 17 struct WebPreferences {
18 std::wstring standard_font_family; 18 std::wstring standard_font_family;
19 std::wstring fixed_font_family; 19 std::wstring fixed_font_family;
20 std::wstring serif_font_family; 20 std::wstring serif_font_family;
21 std::wstring sans_serif_font_family; 21 std::wstring sans_serif_font_family;
22 std::wstring cursive_font_family; 22 std::wstring cursive_font_family;
23 std::wstring fantasy_font_family; 23 std::wstring fantasy_font_family;
24 int default_font_size; 24 int default_font_size;
25 int default_fixed_font_size; 25 int default_fixed_font_size;
26 int minimum_font_size; 26 int minimum_font_size;
27 int minimum_logical_font_size; 27 int minimum_logical_font_size;
28 std::wstring default_encoding; 28 std::wstring default_encoding;
29 bool javascript_enabled; 29 bool javascript_enabled;
30 bool web_security_enabled;
30 bool javascript_can_open_windows_automatically; 31 bool javascript_can_open_windows_automatically;
31 bool loads_images_automatically; 32 bool loads_images_automatically;
32 bool plugins_enabled; 33 bool plugins_enabled;
33 bool dom_paste_enabled; 34 bool dom_paste_enabled;
34 bool developer_extras_enabled; 35 bool developer_extras_enabled;
35 bool shrinks_standalone_images_to_fit; 36 bool shrinks_standalone_images_to_fit;
36 bool uses_universal_detector; 37 bool uses_universal_detector;
37 bool text_areas_are_resizable; 38 bool text_areas_are_resizable;
38 bool java_enabled; 39 bool java_enabled;
39 bool allow_scripts_to_close_windows; 40 bool allow_scripts_to_close_windows;
(...skipping 13 matching lines...) Expand all
53 serif_font_family(L"Times New Roman"), 54 serif_font_family(L"Times New Roman"),
54 sans_serif_font_family(L"Arial"), 55 sans_serif_font_family(L"Arial"),
55 cursive_font_family(L"Script"), 56 cursive_font_family(L"Script"),
56 fantasy_font_family(), // Not sure what to use on Windows. 57 fantasy_font_family(), // Not sure what to use on Windows.
57 default_font_size(16), 58 default_font_size(16),
58 default_fixed_font_size(13), 59 default_fixed_font_size(13),
59 minimum_font_size(1), 60 minimum_font_size(1),
60 minimum_logical_font_size(6), 61 minimum_logical_font_size(6),
61 default_encoding(L"ISO-8859-1"), 62 default_encoding(L"ISO-8859-1"),
62 javascript_enabled(true), 63 javascript_enabled(true),
64 web_security_enabled(true),
63 javascript_can_open_windows_automatically(true), 65 javascript_can_open_windows_automatically(true),
64 loads_images_automatically(true), 66 loads_images_automatically(true),
65 plugins_enabled(true), 67 plugins_enabled(true),
66 dom_paste_enabled(false), // enables execCommand("paste") 68 dom_paste_enabled(false), // enables execCommand("paste")
67 developer_extras_enabled(false), // Requires extra work by embedder 69 developer_extras_enabled(false), // Requires extra work by embedder
68 shrinks_standalone_images_to_fit(true), 70 shrinks_standalone_images_to_fit(true),
69 uses_universal_detector(false), // Disabled: page cycler regression 71 uses_universal_detector(false), // Disabled: page cycler regression
70 text_areas_are_resizable(true), 72 text_areas_are_resizable(true),
71 java_enabled(true), 73 java_enabled(true),
72 allow_scripts_to_close_windows(false), 74 allow_scripts_to_close_windows(false),
73 uses_page_cache(false), 75 uses_page_cache(false),
74 user_style_sheet_enabled(false) { 76 user_style_sheet_enabled(false) {
75 } 77 }
76 }; 78 };
77 79
78 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 80 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698