| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 const std::string autoplay_group_name = base::FieldTrialList::FindFullName( | 415 const std::string autoplay_group_name = base::FieldTrialList::FindFullName( |
| 416 "MediaElementAutoplay"); | 416 "MediaElementAutoplay"); |
| 417 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch( | 417 prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch( |
| 418 switches::kDisableGestureRequirementForMediaPlayback) && | 418 switches::kDisableGestureRequirementForMediaPlayback) && |
| 419 (autoplay_group_name.empty() || autoplay_group_name != "Enabled"); | 419 (autoplay_group_name.empty() || autoplay_group_name != "Enabled"); |
| 420 #endif | 420 #endif |
| 421 | 421 |
| 422 prefs.touch_enabled = ui::AreTouchEventsEnabled(); | 422 prefs.touch_enabled = ui::AreTouchEventsEnabled(); |
| 423 prefs.device_supports_touch = prefs.touch_enabled && | 423 prefs.device_supports_touch = prefs.touch_enabled && |
| 424 ui::IsTouchDevicePresent(); | 424 ui::IsTouchDevicePresent(); |
| 425 prefs.available_pointer_types = ui::AvailablePointerTypes(); |
| 426 prefs.primary_pointer_type = ui::PrimaryPointerType(); |
| 427 prefs.available_hover_types = ui::AvailableHoverTypes(); |
| 428 prefs.primary_hover_type = ui::PrimaryHoverType(); |
| 429 |
| 425 #if defined(OS_ANDROID) | 430 #if defined(OS_ANDROID) |
| 426 prefs.device_supports_mouse = false; | 431 prefs.device_supports_mouse = false; |
| 427 #endif | 432 #endif |
| 428 | 433 |
| 429 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); | 434 prefs.pointer_events_max_touch_points = ui::MaxTouchPoints(); |
| 430 | 435 |
| 431 prefs.touch_adjustment_enabled = | 436 prefs.touch_adjustment_enabled = |
| 432 !command_line.HasSwitch(switches::kDisableTouchAdjustment); | 437 !command_line.HasSwitch(switches::kDisableTouchAdjustment); |
| 433 | 438 |
| 434 prefs.slimming_paint_enabled = | 439 prefs.slimming_paint_enabled = |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1473 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1469 | 1474 |
| 1470 frame_tree->ResetForMainFrameSwap(); | 1475 frame_tree->ResetForMainFrameSwap(); |
| 1471 } | 1476 } |
| 1472 | 1477 |
| 1473 void RenderViewHostImpl::SelectWordAroundCaret() { | 1478 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1474 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1479 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1475 } | 1480 } |
| 1476 | 1481 |
| 1477 } // namespace content | 1482 } // namespace content |
| OLD | NEW |