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_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 std::move(synthetic_gesture), on_complete); | 1320 std::move(synthetic_gesture), on_complete); |
1321 } | 1321 } |
1322 } | 1322 } |
1323 | 1323 |
1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { | 1324 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { |
1325 if (!view_) | 1325 if (!view_) |
1326 return; | 1326 return; |
1327 view_->UpdateCursor(cursor); | 1327 view_->UpdateCursor(cursor); |
1328 } | 1328 } |
1329 | 1329 |
1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) { | 1330 void RenderWidgetHostImpl::ShowContextMenuAtPoint( |
1331 Send(new ViewMsg_ShowContextMenu( | 1331 const gfx::Point& point, |
1332 GetRoutingID(), ui::MENU_SOURCE_MOUSE, point)); | 1332 const ui::MenuSourceType source_type) { |
| 1333 Send(new ViewMsg_ShowContextMenu(GetRoutingID(), source_type, point)); |
1333 } | 1334 } |
1334 | 1335 |
1335 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { | 1336 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { |
1336 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); | 1337 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); |
1337 } | 1338 } |
1338 | 1339 |
1339 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { | 1340 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { |
1340 return latency_tracker_.latency_component_id(); | 1341 return latency_tracker_.latency_component_id(); |
1341 } | 1342 } |
1342 | 1343 |
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 device::mojom::WakeLockType::PreventDisplaySleep, | 2657 device::mojom::WakeLockType::PreventDisplaySleep, |
2657 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", | 2658 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", |
2658 std::move(request)); | 2659 std::move(request)); |
2659 } | 2660 } |
2660 } | 2661 } |
2661 return wake_lock_.get(); | 2662 return wake_lock_.get(); |
2662 } | 2663 } |
2663 #endif | 2664 #endif |
2664 | 2665 |
2665 } // namespace content | 2666 } // namespace content |
OLD | NEW |