| OLD | NEW |
| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 touch_enabled_switch == switches::kTouchEventsEnabled); | 455 touch_enabled_switch == switches::kTouchEventsEnabled); |
| 456 std::tie(prefs.available_pointer_types, prefs.available_hover_types) = | 456 std::tie(prefs.available_pointer_types, prefs.available_hover_types) = |
| 457 ui::GetAvailablePointerAndHoverTypes(); | 457 ui::GetAvailablePointerAndHoverTypes(); |
| 458 prefs.primary_pointer_type = | 458 prefs.primary_pointer_type = |
| 459 ui::GetPrimaryPointerType(prefs.available_pointer_types); | 459 ui::GetPrimaryPointerType(prefs.available_pointer_types); |
| 460 prefs.primary_hover_type = | 460 prefs.primary_hover_type = |
| 461 ui::GetPrimaryHoverType(prefs.available_hover_types); | 461 ui::GetPrimaryHoverType(prefs.available_hover_types); |
| 462 | 462 |
| 463 #if defined(OS_ANDROID) | 463 #if defined(OS_ANDROID) |
| 464 prefs.device_supports_mouse = false; | 464 prefs.device_supports_mouse = false; |
| 465 |
| 466 prefs.video_fullscreen_orientation_lock_enabled = |
| 467 base::FeatureList::IsEnabled(media::kVideoFullscreenOrientationLock); |
| 465 #endif | 468 #endif |
| 466 | 469 |
| 467 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); | 470 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); |
| 468 | 471 |
| 469 prefs.touch_adjustment_enabled = | 472 prefs.touch_adjustment_enabled = |
| 470 !command_line.HasSwitch(switches::kDisableTouchAdjustment); | 473 !command_line.HasSwitch(switches::kDisableTouchAdjustment); |
| 471 | 474 |
| 472 prefs.enable_scroll_animator = | 475 prefs.enable_scroll_animator = |
| 473 command_line.HasSwitch(switches::kEnableSmoothScrolling) || | 476 command_line.HasSwitch(switches::kEnableSmoothScrolling) || |
| 474 (!command_line.HasSwitch(switches::kDisableSmoothScrolling) && | 477 (!command_line.HasSwitch(switches::kDisableSmoothScrolling) && |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 } else { | 1083 } else { |
| 1081 render_view_ready_on_process_launch_ = true; | 1084 render_view_ready_on_process_launch_ = true; |
| 1082 } | 1085 } |
| 1083 } | 1086 } |
| 1084 | 1087 |
| 1085 void RenderViewHostImpl::RenderViewReady() { | 1088 void RenderViewHostImpl::RenderViewReady() { |
| 1086 delegate_->RenderViewReady(this); | 1089 delegate_->RenderViewReady(this); |
| 1087 } | 1090 } |
| 1088 | 1091 |
| 1089 } // namespace content | 1092 } // namespace content |
| OLD | NEW |