OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // This flag indicates whether H/W accelerated video decode is enabled for | 155 // This flag indicates whether H/W accelerated video decode is enabled for |
156 // pepper plugins. Defaults to false. | 156 // pepper plugins. Defaults to false. |
157 bool pepper_accelerated_video_decode_enabled; | 157 bool pepper_accelerated_video_decode_enabled; |
158 | 158 |
159 #if defined(OS_ANDROID) | 159 #if defined(OS_ANDROID) |
160 bool text_autosizing_enabled; | 160 bool text_autosizing_enabled; |
161 float font_scale_factor; | 161 float font_scale_factor; |
162 float device_scale_adjustment; | 162 float device_scale_adjustment; |
163 bool force_enable_zoom; | 163 bool force_enable_zoom; |
164 bool disallow_fullscreen_for_non_media_elements; | |
165 bool fullscreen_supported; | 164 bool fullscreen_supported; |
166 bool double_tap_to_zoom_enabled; | 165 bool double_tap_to_zoom_enabled; |
167 bool user_gesture_required_for_media_playback; | 166 bool user_gesture_required_for_media_playback; |
168 GURL default_video_poster_url; | 167 GURL default_video_poster_url; |
169 bool support_deprecated_target_density_dpi; | 168 bool support_deprecated_target_density_dpi; |
170 bool use_legacy_background_size_shorthand_behavior; | 169 bool use_legacy_background_size_shorthand_behavior; |
171 bool wide_viewport_quirk; | 170 bool wide_viewport_quirk; |
172 bool use_wide_viewport; | 171 bool use_wide_viewport; |
173 bool force_zero_layout_height; | 172 bool force_zero_layout_height; |
174 bool viewport_meta_layout_size_quirk; | 173 bool viewport_meta_layout_size_quirk; |
175 bool viewport_meta_merge_content_quirk; | 174 bool viewport_meta_merge_content_quirk; |
176 bool viewport_meta_non_user_scalable_quirk; | 175 bool viewport_meta_non_user_scalable_quirk; |
177 bool viewport_meta_zero_values_quirk; | 176 bool viewport_meta_zero_values_quirk; |
178 bool clobber_user_agent_initial_scale_quirk; | 177 bool clobber_user_agent_initial_scale_quirk; |
179 bool ignore_main_frame_overflow_hidden_quirk; | 178 bool ignore_main_frame_overflow_hidden_quirk; |
180 bool report_screen_size_in_physical_pixels_quirk; | 179 bool report_screen_size_in_physical_pixels_quirk; |
181 #endif | 180 #endif |
182 | 181 |
183 // 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 |
184 // 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 |
185 // the embedder to use the same default value. | 184 // the embedder to use the same default value. |
186 WebPreferences(); | 185 WebPreferences(); |
187 ~WebPreferences(); | 186 ~WebPreferences(); |
188 }; | 187 }; |
189 | 188 |
190 } // namespace content | 189 } // namespace content |
191 | 190 |
192 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 191 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |