| OLD | NEW |
| 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 // WebKit::WebSettings, common/render_messages.h, and | 8 // WebKit::WebSettings, common/render_messages.h, and |
| 9 // browser/profile.cc. | 9 // browser/profile.cc. |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 int minimum_font_size; | 28 int minimum_font_size; |
| 29 int minimum_logical_font_size; | 29 int minimum_logical_font_size; |
| 30 std::string default_encoding; | 30 std::string default_encoding; |
| 31 bool javascript_enabled; | 31 bool javascript_enabled; |
| 32 bool web_security_enabled; | 32 bool web_security_enabled; |
| 33 bool javascript_can_open_windows_automatically; | 33 bool javascript_can_open_windows_automatically; |
| 34 bool loads_images_automatically; | 34 bool loads_images_automatically; |
| 35 bool plugins_enabled; | 35 bool plugins_enabled; |
| 36 bool dom_paste_enabled; | 36 bool dom_paste_enabled; |
| 37 bool developer_extras_enabled; | 37 bool developer_extras_enabled; |
| 38 std::wstring inspector_settings; | 38 std::string inspector_settings; |
| 39 bool shrinks_standalone_images_to_fit; | 39 bool shrinks_standalone_images_to_fit; |
| 40 bool uses_universal_detector; | 40 bool uses_universal_detector; |
| 41 bool text_areas_are_resizable; | 41 bool text_areas_are_resizable; |
| 42 bool java_enabled; | 42 bool java_enabled; |
| 43 bool allow_scripts_to_close_windows; | 43 bool allow_scripts_to_close_windows; |
| 44 bool uses_page_cache; | 44 bool uses_page_cache; |
| 45 bool remote_fonts_enabled; | 45 bool remote_fonts_enabled; |
| 46 bool xss_auditor_enabled; | 46 bool xss_auditor_enabled; |
| 47 bool local_storage_enabled; | 47 bool local_storage_enabled; |
| 48 bool databases_enabled; | 48 bool databases_enabled; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 74 minimum_font_size(1), | 74 minimum_font_size(1), |
| 75 minimum_logical_font_size(6), | 75 minimum_logical_font_size(6), |
| 76 default_encoding("ISO-8859-1"), | 76 default_encoding("ISO-8859-1"), |
| 77 javascript_enabled(true), | 77 javascript_enabled(true), |
| 78 web_security_enabled(true), | 78 web_security_enabled(true), |
| 79 javascript_can_open_windows_automatically(true), | 79 javascript_can_open_windows_automatically(true), |
| 80 loads_images_automatically(true), | 80 loads_images_automatically(true), |
| 81 plugins_enabled(true), | 81 plugins_enabled(true), |
| 82 dom_paste_enabled(false), // enables execCommand("paste") | 82 dom_paste_enabled(false), // enables execCommand("paste") |
| 83 developer_extras_enabled(false), // Requires extra work by embedder | 83 developer_extras_enabled(false), // Requires extra work by embedder |
| 84 inspector_settings(L""), | |
| 85 shrinks_standalone_images_to_fit(true), | 84 shrinks_standalone_images_to_fit(true), |
| 86 uses_universal_detector(false), // Disabled: page cycler regression | 85 uses_universal_detector(false), // Disabled: page cycler regression |
| 87 text_areas_are_resizable(true), | 86 text_areas_are_resizable(true), |
| 88 java_enabled(true), | 87 java_enabled(true), |
| 89 allow_scripts_to_close_windows(false), | 88 allow_scripts_to_close_windows(false), |
| 90 uses_page_cache(false), | 89 uses_page_cache(false), |
| 91 remote_fonts_enabled(false), | 90 remote_fonts_enabled(false), |
| 92 xss_auditor_enabled(false), | 91 xss_auditor_enabled(false), |
| 93 local_storage_enabled(false), | 92 local_storage_enabled(false), |
| 94 databases_enabled(false), | 93 databases_enabled(false), |
| 95 session_storage_enabled(false), | 94 session_storage_enabled(false), |
| 96 application_cache_enabled(false), | 95 application_cache_enabled(false), |
| 97 tabs_to_links(true), | 96 tabs_to_links(true), |
| 98 user_style_sheet_enabled(false), | 97 user_style_sheet_enabled(false), |
| 99 allow_universal_access_from_file_urls(false), | 98 allow_universal_access_from_file_urls(false), |
| 100 experimental_webgl_enabled(false) { | 99 experimental_webgl_enabled(false) { |
| 101 } | 100 } |
| 102 | 101 |
| 103 void Apply(WebView* web_view) const; | 102 void Apply(WebView* web_view) const; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 105 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |