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