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