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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2830713003: [Media controls] Add rotate-to-fullscreen gesture behind flag (Closed)
Patch Set: Use __func__ instead per styleguide Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 // Force preload=none and disable autoplay on older Android 1043 // Force preload=none and disable autoplay on older Android
1044 // platforms because their media pipelines are not stable enough to handle 1044 // platforms because their media pipelines are not stable enough to handle
1045 // concurrent elements. See http://crbug.com/612909, http://crbug.com/622826. 1045 // concurrent elements. See http://crbug.com/612909, http://crbug.com/622826.
1046 const bool is_jelly_bean = 1046 const bool is_jelly_bean =
1047 base::android::BuildInfo::GetInstance()->sdk_int() <= 1047 base::android::BuildInfo::GetInstance()->sdk_int() <=
1048 base::android::SDK_VERSION_JELLY_BEAN_MR2; 1048 base::android::SDK_VERSION_JELLY_BEAN_MR2;
1049 settings->SetForcePreloadNoneForMediaElements(is_jelly_bean); 1049 settings->SetForcePreloadNoneForMediaElements(is_jelly_bean);
1050 1050
1051 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock( 1051 WebRuntimeFeatures::EnableVideoFullscreenOrientationLock(
1052 prefs.video_fullscreen_orientation_lock_enabled); 1052 prefs.video_fullscreen_orientation_lock_enabled);
1053 WebRuntimeFeatures::EnableVideoRotateToFullscreen(
1054 prefs.video_rotate_to_fullscreen_enabled);
1053 WebRuntimeFeatures::EnableVideoFullscreenDetection( 1055 WebRuntimeFeatures::EnableVideoFullscreenDetection(
1054 prefs.video_fullscreen_detection_enabled); 1056 prefs.video_fullscreen_detection_enabled);
1055 settings->SetEmbeddedMediaExperienceEnabled( 1057 settings->SetEmbeddedMediaExperienceEnabled(
1056 prefs.embedded_media_experience_enabled); 1058 prefs.embedded_media_experience_enabled);
1057 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange( 1059 settings->SetDoNotUpdateSelectionOnMutatingSelectionRange(
1058 prefs.do_not_update_selection_on_mutating_selection_range); 1060 prefs.do_not_update_selection_on_mutating_selection_range);
1059 #else // defined(OS_ANDROID) 1061 #else // defined(OS_ANDROID)
1060 settings->SetCrossOriginMediaPlaybackRequiresUserGesture( 1062 settings->SetCrossOriginMediaPlaybackRequiresUserGesture(
1061 prefs.cross_origin_media_playback_requires_user_gesture); 1063 prefs.cross_origin_media_playback_requires_user_gesture);
1062 #endif // defined(OS_ANDROID) 1064 #endif // defined(OS_ANDROID)
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 input_event.GetCoalescedEventsPointers(), latency_info, 2662 input_event.GetCoalescedEventsPointers(), latency_info,
2661 dispatch_type); 2663 dispatch_type);
2662 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2664 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2663 } 2665 }
2664 idle_user_detector_->ActivityDetected(); 2666 idle_user_detector_->ActivityDetected();
2665 return RenderWidget::HandleInputEvent(input_event, latency_info, 2667 return RenderWidget::HandleInputEvent(input_event, latency_info,
2666 dispatch_type); 2668 dispatch_type);
2667 } 2669 }
2668 2670
2669 } // namespace content 2671 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698