| 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 // 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 bool javascript_can_open_windows_automatically; | 30 bool javascript_can_open_windows_automatically; |
| 31 bool loads_images_automatically; | 31 bool loads_images_automatically; |
| 32 bool plugins_enabled; | 32 bool plugins_enabled; |
| 33 bool dom_paste_enabled; | 33 bool dom_paste_enabled; |
| 34 bool developer_extras_enabled; | 34 bool developer_extras_enabled; |
| 35 bool shrinks_standalone_images_to_fit; | 35 bool shrinks_standalone_images_to_fit; |
| 36 bool uses_universal_detector; | 36 bool uses_universal_detector; |
| 37 bool text_areas_are_resizable; | 37 bool text_areas_are_resizable; |
| 38 bool dashboard_compatibility_mode; | 38 bool dashboard_compatibility_mode; |
| 39 bool java_enabled; | 39 bool java_enabled; |
| 40 bool allow_scripts_to_close_windows; |
| 40 | 41 |
| 41 // TODO(tc): User style sheets will not work in chrome because it tries to | 42 // TODO(tc): User style sheets will not work in chrome because it tries to |
| 42 // load the style sheet using a request without a frame. | 43 // load the style sheet using a request without a frame. |
| 43 bool user_style_sheet_enabled; | 44 bool user_style_sheet_enabled; |
| 44 GURL user_style_sheet_location; | 45 GURL user_style_sheet_location; |
| 45 | 46 |
| 46 std::string user_agent; | 47 std::string user_agent; |
| 47 | 48 |
| 48 // We try to keep the default values the same as the default values in | 49 // We try to keep the default values the same as the default values in |
| 49 // chrome, except for the cases where it would require lots of extra work for | 50 // chrome, except for the cases where it would require lots of extra work for |
| (...skipping 14 matching lines...) Expand all Loading... |
| 64 javascript_can_open_windows_automatically(true), | 65 javascript_can_open_windows_automatically(true), |
| 65 loads_images_automatically(true), | 66 loads_images_automatically(true), |
| 66 plugins_enabled(true), | 67 plugins_enabled(true), |
| 67 dom_paste_enabled(false), // enables execCommand("paste") | 68 dom_paste_enabled(false), // enables execCommand("paste") |
| 68 developer_extras_enabled(false), // Requires extra work by embedder | 69 developer_extras_enabled(false), // Requires extra work by embedder |
| 69 shrinks_standalone_images_to_fit(true), | 70 shrinks_standalone_images_to_fit(true), |
| 70 uses_universal_detector(false), // Disabled: page cycler regression | 71 uses_universal_detector(false), // Disabled: page cycler regression |
| 71 text_areas_are_resizable(true), | 72 text_areas_are_resizable(true), |
| 72 dashboard_compatibility_mode(false), | 73 dashboard_compatibility_mode(false), |
| 73 java_enabled(true), | 74 java_enabled(true), |
| 74 user_style_sheet_enabled(false) { | 75 user_style_sheet_enabled(false), |
| 76 allow_scripts_to_close_windows(false) { |
| 75 } | 77 } |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 80 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| 79 | 81 |
| OLD | NEW |