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