| 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 21 matching lines...) Expand all Loading... |
| 32 bool loads_images_automatically; | 32 bool loads_images_automatically; |
| 33 bool plugins_enabled; | 33 bool plugins_enabled; |
| 34 bool dom_paste_enabled; | 34 bool dom_paste_enabled; |
| 35 bool developer_extras_enabled; | 35 bool developer_extras_enabled; |
| 36 bool shrinks_standalone_images_to_fit; | 36 bool shrinks_standalone_images_to_fit; |
| 37 bool uses_universal_detector; | 37 bool uses_universal_detector; |
| 38 bool text_areas_are_resizable; | 38 bool text_areas_are_resizable; |
| 39 bool java_enabled; | 39 bool java_enabled; |
| 40 bool allow_scripts_to_close_windows; | 40 bool allow_scripts_to_close_windows; |
| 41 bool uses_page_cache; | 41 bool uses_page_cache; |
| 42 bool remote_font_enabled; |
| 42 | 43 |
| 43 // TODO(tc): User style sheets will not work in chrome because it tries to | 44 // TODO(tc): User style sheets will not work in chrome because it tries to |
| 44 // load the style sheet using a request without a frame. | 45 // load the style sheet using a request without a frame. |
| 45 bool user_style_sheet_enabled; | 46 bool user_style_sheet_enabled; |
| 46 GURL user_style_sheet_location; | 47 GURL user_style_sheet_location; |
| 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 |
| 50 // the embedder to use the same default value. | 51 // the embedder to use the same default value. |
| 51 WebPreferences() | 52 WebPreferences() |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 loads_images_automatically(true), | 67 loads_images_automatically(true), |
| 67 plugins_enabled(true), | 68 plugins_enabled(true), |
| 68 dom_paste_enabled(false), // enables execCommand("paste") | 69 dom_paste_enabled(false), // enables execCommand("paste") |
| 69 developer_extras_enabled(false), // Requires extra work by embedder | 70 developer_extras_enabled(false), // Requires extra work by embedder |
| 70 shrinks_standalone_images_to_fit(true), | 71 shrinks_standalone_images_to_fit(true), |
| 71 uses_universal_detector(false), // Disabled: page cycler regression | 72 uses_universal_detector(false), // Disabled: page cycler regression |
| 72 text_areas_are_resizable(true), | 73 text_areas_are_resizable(true), |
| 73 java_enabled(true), | 74 java_enabled(true), |
| 74 allow_scripts_to_close_windows(false), | 75 allow_scripts_to_close_windows(false), |
| 75 uses_page_cache(false), | 76 uses_page_cache(false), |
| 76 user_style_sheet_enabled(false) { | 77 user_style_sheet_enabled(false), |
| 78 remote_font_enabled(false) { |
| 77 } | 79 } |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 82 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |