| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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, content/common/view_messages.h, browser/tab_contents/ | 8 // WebKit::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 int max_untiled_layer_width; | 149 int max_untiled_layer_width; |
| 150 int max_untiled_layer_height; | 150 int max_untiled_layer_height; |
| 151 bool fixed_position_creates_stacking_context; | 151 bool fixed_position_creates_stacking_context; |
| 152 bool sync_xhr_in_documents_enabled; | 152 bool sync_xhr_in_documents_enabled; |
| 153 bool deferred_image_decoding_enabled; | 153 bool deferred_image_decoding_enabled; |
| 154 bool should_respect_image_orientation; | 154 bool should_respect_image_orientation; |
| 155 int number_of_cpu_cores; | 155 int number_of_cpu_cores; |
| 156 EditingBehavior editing_behavior; | 156 EditingBehavior editing_behavior; |
| 157 bool supports_multiple_windows; | 157 bool supports_multiple_windows; |
| 158 bool viewport_enabled; | 158 bool viewport_enabled; |
| 159 bool viewport_scale_content_to_fit; |
| 159 bool record_rendering_stats; | 160 bool record_rendering_stats; |
| 160 | 161 |
| 161 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 162 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 162 // only controls whether or not the "document.cookie" field is properly | 163 // only controls whether or not the "document.cookie" field is properly |
| 163 // connected to the backing store, for instance if you wanted to be able to | 164 // connected to the backing store, for instance if you wanted to be able to |
| 164 // define custom getters and setters from within a unique security content | 165 // define custom getters and setters from within a unique security content |
| 165 // without raising a DOM security exception. | 166 // without raising a DOM security exception. |
| 166 bool cookie_enabled; | 167 bool cookie_enabled; |
| 167 | 168 |
| 168 #if defined(OS_ANDROID) | 169 #if defined(OS_ANDROID) |
| 169 bool text_autosizing_enabled; | 170 bool text_autosizing_enabled; |
| 170 float font_scale_factor; | 171 float font_scale_factor; |
| 171 bool force_enable_zoom; | 172 bool force_enable_zoom; |
| 172 bool user_gesture_required_for_media_playback; | 173 bool user_gesture_required_for_media_playback; |
| 173 #endif | 174 #endif |
| 174 | 175 |
| 175 // We try to keep the default values the same as the default values in | 176 // We try to keep the default values the same as the default values in |
| 176 // chrome, except for the cases where it would require lots of extra work for | 177 // chrome, except for the cases where it would require lots of extra work for |
| 177 // the embedder to use the same default value. | 178 // the embedder to use the same default value. |
| 178 WebPreferences(); | 179 WebPreferences(); |
| 179 ~WebPreferences(); | 180 ~WebPreferences(); |
| 180 | 181 |
| 181 void Apply(WebKit::WebView* web_view) const; | 182 void Apply(WebKit::WebView* web_view) const; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace webkit_glue | 185 } // namespace webkit_glue |
| 185 | 186 |
| 186 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 187 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |