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 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 8 // blink::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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // This flag indicates whether H/W accelerated video decode is enabled for | 159 // This flag indicates whether H/W accelerated video decode is enabled for |
160 // pepper plugins. Defaults to false. | 160 // pepper plugins. Defaults to false. |
161 bool pepper_accelerated_video_decode_enabled; | 161 bool pepper_accelerated_video_decode_enabled; |
162 | 162 |
163 #if defined(OS_ANDROID) | 163 #if defined(OS_ANDROID) |
164 bool text_autosizing_enabled; | 164 bool text_autosizing_enabled; |
165 float font_scale_factor; | 165 float font_scale_factor; |
166 float device_scale_adjustment; | 166 float device_scale_adjustment; |
167 bool force_enable_zoom; | 167 bool force_enable_zoom; |
| 168 bool disallow_fullscreen_for_non_media_elements; |
168 bool double_tap_to_zoom_enabled; | 169 bool double_tap_to_zoom_enabled; |
169 bool user_gesture_required_for_media_playback; | 170 bool user_gesture_required_for_media_playback; |
170 GURL default_video_poster_url; | 171 GURL default_video_poster_url; |
171 bool support_deprecated_target_density_dpi; | 172 bool support_deprecated_target_density_dpi; |
172 bool use_legacy_background_size_shorthand_behavior; | 173 bool use_legacy_background_size_shorthand_behavior; |
173 bool wide_viewport_quirk; | 174 bool wide_viewport_quirk; |
174 bool use_wide_viewport; | 175 bool use_wide_viewport; |
175 bool viewport_meta_layout_size_quirk; | 176 bool viewport_meta_layout_size_quirk; |
176 bool viewport_meta_merge_content_quirk; | 177 bool viewport_meta_merge_content_quirk; |
177 bool viewport_meta_non_user_scalable_quirk; | 178 bool viewport_meta_non_user_scalable_quirk; |
178 bool viewport_meta_zero_values_quirk; | 179 bool viewport_meta_zero_values_quirk; |
179 bool clobber_user_agent_initial_scale_quirk; | 180 bool clobber_user_agent_initial_scale_quirk; |
180 bool ignore_main_frame_overflow_hidden_quirk; | 181 bool ignore_main_frame_overflow_hidden_quirk; |
181 bool report_screen_size_in_physical_pixels_quirk; | 182 bool report_screen_size_in_physical_pixels_quirk; |
182 #endif | 183 #endif |
183 | 184 |
184 // We try to keep the default values the same as the default values in | 185 // We try to keep the default values the same as the default values in |
185 // chrome, except for the cases where it would require lots of extra work for | 186 // chrome, except for the cases where it would require lots of extra work for |
186 // the embedder to use the same default value. | 187 // the embedder to use the same default value. |
187 WebPreferences(); | 188 WebPreferences(); |
188 ~WebPreferences(); | 189 ~WebPreferences(); |
189 }; | 190 }; |
190 | 191 |
191 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ | 192 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
OLD | NEW |