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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2547533002: Add flags to enable screen orientation lock for fullscreen video on Android. (Closed)
Patch Set: 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 (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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ui::TouchScreensAvailability::ENABLED; 450 ui::TouchScreensAvailability::ENABLED;
451 std::tie(prefs.available_pointer_types, prefs.available_hover_types) = 451 std::tie(prefs.available_pointer_types, prefs.available_hover_types) =
452 ui::GetAvailablePointerAndHoverTypes(); 452 ui::GetAvailablePointerAndHoverTypes();
453 prefs.primary_pointer_type = 453 prefs.primary_pointer_type =
454 ui::GetPrimaryPointerType(prefs.available_pointer_types); 454 ui::GetPrimaryPointerType(prefs.available_pointer_types);
455 prefs.primary_hover_type = 455 prefs.primary_hover_type =
456 ui::GetPrimaryHoverType(prefs.available_hover_types); 456 ui::GetPrimaryHoverType(prefs.available_hover_types);
457 457
458 #if defined(OS_ANDROID) 458 #if defined(OS_ANDROID)
459 prefs.device_supports_mouse = false; 459 prefs.device_supports_mouse = false;
460
461 prefs.video_fullscreen_orientation_lock_enabled =
462 base::FeatureList::IsEnabled(media::kVideoFullscreenOrientationLock);
460 #endif 463 #endif
461 464
462 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); 465 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
463 466
464 prefs.touch_adjustment_enabled = 467 prefs.touch_adjustment_enabled =
465 !command_line.HasSwitch(switches::kDisableTouchAdjustment); 468 !command_line.HasSwitch(switches::kDisableTouchAdjustment);
466 469
467 prefs.enable_scroll_animator = 470 prefs.enable_scroll_animator =
468 command_line.HasSwitch(switches::kEnableSmoothScrolling) || 471 command_line.HasSwitch(switches::kEnableSmoothScrolling) ||
469 (!command_line.HasSwitch(switches::kDisableSmoothScrolling) && 472 (!command_line.HasSwitch(switches::kDisableSmoothScrolling) &&
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 } else { 1078 } else {
1076 render_view_ready_on_process_launch_ = true; 1079 render_view_ready_on_process_launch_ = true;
1077 } 1080 }
1078 } 1081 }
1079 1082
1080 void RenderViewHostImpl::RenderViewReady() { 1083 void RenderViewHostImpl::RenderViewReady() {
1081 delegate_->RenderViewReady(this); 1084 delegate_->RenderViewReady(this);
1082 } 1085 }
1083 1086
1084 } // namespace content 1087 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698