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