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