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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 bool report_screen_size_in_physical_pixels_quirk; | 240 bool report_screen_size_in_physical_pixels_quirk; |
241 // Used by Android_WebView only to support legacy apps that inject script into | 241 // Used by Android_WebView only to support legacy apps that inject script into |
242 // a top-level initial empty document and expect it to persist on navigation. | 242 // a top-level initial empty document and expect it to persist on navigation. |
243 bool resue_global_for_unowned_main_frame; | 243 bool resue_global_for_unowned_main_frame; |
244 ProgressBarCompletion progress_bar_completion; | 244 ProgressBarCompletion progress_bar_completion; |
245 // Specifies default setting for spellcheck when the spellcheck attribute is | 245 // Specifies default setting for spellcheck when the spellcheck attribute is |
246 // not explicitly specified. | 246 // not explicitly specified. |
247 bool spellcheck_enabled_by_default; | 247 bool spellcheck_enabled_by_default; |
248 // 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. |
249 bool video_fullscreen_orientation_lock_enabled; | 249 bool video_fullscreen_orientation_lock_enabled; |
| 250 // If enabled, fullscreen should be entered/exited when the device is rotated |
| 251 // to/from the orientation of the video. |
| 252 bool video_rotate_to_fullscreen_enabled; |
250 // If enabled, video fullscreen detection will be enabled. | 253 // If enabled, video fullscreen detection will be enabled. |
251 bool video_fullscreen_detection_enabled; | 254 bool video_fullscreen_detection_enabled; |
252 bool embedded_media_experience_enabled; | 255 bool embedded_media_experience_enabled; |
253 #else // defined(OS_ANDROID) | 256 #else // defined(OS_ANDROID) |
254 bool cross_origin_media_playback_requires_user_gesture; | 257 bool cross_origin_media_playback_requires_user_gesture; |
255 #endif // defined(OS_ANDROID) | 258 #endif // defined(OS_ANDROID) |
256 | 259 |
257 // Default (used if the page or UA doesn't override these) values for page | 260 // Default (used if the page or UA doesn't override these) values for page |
258 // scale limits. These are set directly on the WebView so there's no analogue | 261 // scale limits. These are set directly on the WebView so there's no analogue |
259 // in WebSettings. | 262 // in WebSettings. |
(...skipping 30 matching lines...) Expand all Loading... |
290 // chrome, except for the cases where it would require lots of extra work for | 293 // chrome, except for the cases where it would require lots of extra work for |
291 // the embedder to use the same default value. | 294 // the embedder to use the same default value. |
292 WebPreferences(); | 295 WebPreferences(); |
293 WebPreferences(const WebPreferences& other); | 296 WebPreferences(const WebPreferences& other); |
294 ~WebPreferences(); | 297 ~WebPreferences(); |
295 }; | 298 }; |
296 | 299 |
297 } // namespace content | 300 } // namespace content |
298 | 301 |
299 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 302 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |