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