| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 ImageAnimationPolicy animation_policy; | 209 ImageAnimationPolicy animation_policy; |
| 210 | 210 |
| 211 bool user_gesture_required_for_presentation; | 211 bool user_gesture_required_for_presentation; |
| 212 | 212 |
| 213 // Specifies the margin for WebVTT text tracks as a percentage of media | 213 // Specifies the margin for WebVTT text tracks as a percentage of media |
| 214 // element height/width (for horizontal/vertical text respectively). | 214 // element height/width (for horizontal/vertical text respectively). |
| 215 // Cues will not be placed in this margin area. | 215 // Cues will not be placed in this margin area. |
| 216 float text_track_margin_percentage; | 216 float text_track_margin_percentage; |
| 217 | 217 |
| 218 bool page_popups_suppressed; |
| 219 |
| 218 #if defined(OS_ANDROID) | 220 #if defined(OS_ANDROID) |
| 219 bool text_autosizing_enabled; | 221 bool text_autosizing_enabled; |
| 220 float font_scale_factor; | 222 float font_scale_factor; |
| 221 float device_scale_adjustment; | 223 float device_scale_adjustment; |
| 222 bool force_enable_zoom; | 224 bool force_enable_zoom; |
| 223 bool fullscreen_supported; | 225 bool fullscreen_supported; |
| 224 bool double_tap_to_zoom_enabled; | 226 bool double_tap_to_zoom_enabled; |
| 225 std::string media_playback_gesture_whitelist_scope; | 227 std::string media_playback_gesture_whitelist_scope; |
| 226 GURL default_video_poster_url; | 228 GURL default_video_poster_url; |
| 227 bool support_deprecated_target_density_dpi; | 229 bool support_deprecated_target_density_dpi; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 244 // not explicitly specified. | 246 // not explicitly specified. |
| 245 bool spellcheck_enabled_by_default; | 247 bool spellcheck_enabled_by_default; |
| 246 // If enabled, when a video goes fullscreen, the orientation should be locked. | 248 // If enabled, when a video goes fullscreen, the orientation should be locked. |
| 247 bool video_fullscreen_orientation_lock_enabled; | 249 bool video_fullscreen_orientation_lock_enabled; |
| 248 // If enabled, fullscreen should be entered/exited when the device is rotated | 250 // If enabled, fullscreen should be entered/exited when the device is rotated |
| 249 // to/from the orientation of the video. | 251 // to/from the orientation of the video. |
| 250 bool video_rotate_to_fullscreen_enabled; | 252 bool video_rotate_to_fullscreen_enabled; |
| 251 // If enabled, video fullscreen detection will be enabled. | 253 // If enabled, video fullscreen detection will be enabled. |
| 252 bool video_fullscreen_detection_enabled; | 254 bool video_fullscreen_detection_enabled; |
| 253 bool embedded_media_experience_enabled; | 255 bool embedded_media_experience_enabled; |
| 254 bool page_popups_suppressed; | |
| 255 #else // defined(OS_ANDROID) | 256 #else // defined(OS_ANDROID) |
| 256 #endif // defined(OS_ANDROID) | 257 #endif // defined(OS_ANDROID) |
| 257 | 258 |
| 258 // Default (used if the page or UA doesn't override these) values for page | 259 // Default (used if the page or UA doesn't override these) values for page |
| 259 // scale limits. These are set directly on the WebView so there's no analogue | 260 // scale limits. These are set directly on the WebView so there's no analogue |
| 260 // in WebSettings. | 261 // in WebSettings. |
| 261 float default_minimum_page_scale_factor; | 262 float default_minimum_page_scale_factor; |
| 262 float default_maximum_page_scale_factor; | 263 float default_maximum_page_scale_factor; |
| 263 | 264 |
| 264 // Whether download UI should be hidden on this page. | 265 // Whether download UI should be hidden on this page. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 286 // chrome, except for the cases where it would require lots of extra work for | 287 // chrome, except for the cases where it would require lots of extra work for |
| 287 // the embedder to use the same default value. | 288 // the embedder to use the same default value. |
| 288 WebPreferences(); | 289 WebPreferences(); |
| 289 WebPreferences(const WebPreferences& other); | 290 WebPreferences(const WebPreferences& other); |
| 290 ~WebPreferences(); | 291 ~WebPreferences(); |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 } // namespace content | 294 } // namespace content |
| 294 | 295 |
| 295 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 296 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |