Chromium Code Reviews| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 bool deferred_image_decoding_enabled; | 150 bool deferred_image_decoding_enabled; |
| 151 bool should_respect_image_orientation; | 151 bool should_respect_image_orientation; |
| 152 int number_of_cpu_cores; | 152 int number_of_cpu_cores; |
| 153 webkit_glue::EditingBehavior editing_behavior; | 153 webkit_glue::EditingBehavior editing_behavior; |
| 154 bool supports_multiple_windows; | 154 bool supports_multiple_windows; |
| 155 bool viewport_enabled; | 155 bool viewport_enabled; |
| 156 bool initialize_at_minimum_page_scale; | 156 bool initialize_at_minimum_page_scale; |
| 157 bool smart_insert_delete_enabled; | 157 bool smart_insert_delete_enabled; |
| 158 bool spatial_navigation_enabled; | 158 bool spatial_navigation_enabled; |
| 159 bool experimental_websocket_enabled; | 159 bool experimental_websocket_enabled; |
| 160 bool pinch_virtual_viewport_enabled; | |
|
jamesr
2013/05/21 17:38:35
what does this setting have to do with Blink?
wjmaclean
2013/05/21 18:01:05
The virtual viewport will require changes to the w
jamesr
2013/05/22 19:35:29
But it doesn't do anything in this patch - the boo
| |
| 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 double_tap_to_zoom_enabled; | 173 bool double_tap_to_zoom_enabled; |
| 173 bool user_gesture_required_for_media_playback; | 174 bool user_gesture_required_for_media_playback; |
| 174 GURL default_video_poster_url; | 175 GURL default_video_poster_url; |
| 175 bool support_deprecated_target_density_dpi; | 176 bool support_deprecated_target_density_dpi; |
| 176 bool use_wide_viewport; | 177 bool use_wide_viewport; |
| 177 #endif | 178 #endif |
| 178 | 179 |
| 179 // We try to keep the default values the same as the default values in | 180 // We try to keep the default values the same as the default values in |
| 180 // chrome, except for the cases where it would require lots of extra work for | 181 // chrome, except for the cases where it would require lots of extra work for |
| 181 // the embedder to use the same default value. | 182 // the embedder to use the same default value. |
| 182 WebPreferences(); | 183 WebPreferences(); |
| 183 ~WebPreferences(); | 184 ~WebPreferences(); |
| 184 }; | 185 }; |
| 185 | 186 |
| 186 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 187 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |