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