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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2830713003: [Media controls] Add rotate-to-fullscreen gesture behind flag (Closed)
Patch Set: Use __func__ instead per styleguide Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index db981b63dbf96e5b1ed0ecef3245acdfa099c79e..13d5cdff50e7f9598c98c1eaa8c8b9877593ec4b 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -477,6 +477,9 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
prefs.video_fullscreen_orientation_lock_enabled =
base::FeatureList::IsEnabled(media::kVideoFullscreenOrientationLock) &&
ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE;
+ prefs.video_rotate_to_fullscreen_enabled =
+ base::FeatureList::IsEnabled(media::kVideoRotateToFullscreen) &&
+ ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE;
#endif
prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698