OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 158 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
159 // only controls whether or not the "document.cookie" field is properly | 159 // only controls whether or not the "document.cookie" field is properly |
160 // 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 |
161 // define custom getters and setters from within a unique security content | 161 // define custom getters and setters from within a unique security content |
162 // without raising a DOM security exception. | 162 // without raising a DOM security exception. |
163 bool cookie_enabled; | 163 bool cookie_enabled; |
164 | 164 |
165 #if defined(OS_ANDROID) | 165 #if defined(OS_ANDROID) |
166 bool text_autosizing_enabled; | 166 bool text_autosizing_enabled; |
167 float font_scale_factor; | 167 float text_autosizing_font_scale_factor; |
168 bool force_enable_zoom; | 168 bool force_enable_zoom; |
169 bool double_tap_to_zoom_enabled; | 169 bool double_tap_to_zoom_enabled; |
170 bool user_gesture_required_for_media_playback; | 170 bool user_gesture_required_for_media_playback; |
171 bool user_gesture_required_for_media_fullscreen; | 171 bool user_gesture_required_for_media_fullscreen; |
172 GURL default_video_poster_url; | 172 GURL default_video_poster_url; |
173 bool support_deprecated_target_density_dpi; | 173 bool support_deprecated_target_density_dpi; |
174 bool use_legacy_background_size_shorthand_behavior; | 174 bool use_legacy_background_size_shorthand_behavior; |
175 bool wide_viewport_quirk; | 175 bool wide_viewport_quirk; |
176 bool use_wide_viewport; | 176 bool use_wide_viewport; |
177 bool viewport_meta_layout_size_quirk; | 177 bool viewport_meta_layout_size_quirk; |
178 bool viewport_meta_zero_values_quirk; | 178 bool viewport_meta_zero_values_quirk; |
179 bool ignore_main_frame_overflow_hidden_quirk; | 179 bool ignore_main_frame_overflow_hidden_quirk; |
180 #endif | 180 #endif |
181 | 181 |
182 // We try to keep the default values the same as the default values in | 182 // We try to keep the default values the same as the default values in |
183 // chrome, except for the cases where it would require lots of extra work for | 183 // chrome, except for the cases where it would require lots of extra work for |
184 // the embedder to use the same default value. | 184 // the embedder to use the same default value. |
185 WebPreferences(); | 185 WebPreferences(); |
186 ~WebPreferences(); | 186 ~WebPreferences(); |
187 }; | 187 }; |
188 | 188 |
189 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ | 189 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
OLD | NEW |