Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: content/public/common/web_preferences.h

Issue 2547533002: Add flags to enable screen orientation lock for fullscreen video on Android. (Closed)
Patch Set: rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
240 bool clobber_user_agent_initial_scale_quirk; 240 bool clobber_user_agent_initial_scale_quirk;
241 bool ignore_main_frame_overflow_hidden_quirk; 241 bool ignore_main_frame_overflow_hidden_quirk;
242 bool report_screen_size_in_physical_pixels_quirk; 242 bool report_screen_size_in_physical_pixels_quirk;
243 // Used by Android_WebView only to support legacy apps that inject script into 243 // Used by Android_WebView only to support legacy apps that inject script into
244 // a top-level initial empty document and expect it to persist on navigation. 244 // a top-level initial empty document and expect it to persist on navigation.
245 bool resue_global_for_unowned_main_frame; 245 bool resue_global_for_unowned_main_frame;
246 ProgressBarCompletion progress_bar_completion; 246 ProgressBarCompletion progress_bar_completion;
247 // Specifies default setting for spellcheck when the spellcheck attribute is 247 // Specifies default setting for spellcheck when the spellcheck attribute is
248 // not explicitly specified. 248 // not explicitly specified.
249 bool spellcheck_enabled_by_default; 249 bool spellcheck_enabled_by_default;
250 // If enabled, when a video goes fullscreen, the orientation should be locked.
251 bool video_fullscreen_orientation_lock_enabled;
250 #endif 252 #endif
251 253
252 // Default (used if the page or UA doesn't override these) values for page 254 // Default (used if the page or UA doesn't override these) values for page
253 // scale limits. These are set directly on the WebView so there's no analogue 255 // scale limits. These are set directly on the WebView so there's no analogue
254 // in WebSettings. 256 // in WebSettings.
255 float default_minimum_page_scale_factor; 257 float default_minimum_page_scale_factor;
256 float default_maximum_page_scale_factor; 258 float default_maximum_page_scale_factor;
257 259
258 // Whether download UI should be hidden on this page. 260 // Whether download UI should be hidden on this page.
259 bool hide_download_ui; 261 bool hide_download_ui;
260 262
261 // If enabled, disabled video track when the video is in the background. 263 // If enabled, disabled video track when the video is in the background.
262 bool background_video_track_optimization_enabled; 264 bool background_video_track_optimization_enabled;
263 265
264 // Whether it is a presentation receiver. 266 // Whether it is a presentation receiver.
265 bool presentation_receiver; 267 bool presentation_receiver;
266 268
267 // We try to keep the default values the same as the default values in 269 // We try to keep the default values the same as the default values in
268 // chrome, except for the cases where it would require lots of extra work for 270 // chrome, except for the cases where it would require lots of extra work for
269 // the embedder to use the same default value. 271 // the embedder to use the same default value.
270 WebPreferences(); 272 WebPreferences();
271 WebPreferences(const WebPreferences& other); 273 WebPreferences(const WebPreferences& other);
272 ~WebPreferences(); 274 ~WebPreferences();
273 }; 275 };
274 276
275 } // namespace content 277 } // namespace content
276 278
277 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 279 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698