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

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

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Remove WVI call to WFWI. 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
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_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 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 } 1324 }
1325 } 1325 }
1326 1326
1327 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { 1327 void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) {
1328 if (!view_) 1328 if (!view_)
1329 return; 1329 return;
1330 view_->UpdateCursor(cursor); 1330 view_->UpdateCursor(cursor);
1331 } 1331 }
1332 1332
1333 void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) { 1333 void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) {
1334 Send(new ViewMsg_ShowContextMenu( 1334 Send(new FrameMsg_ShowContextMenu(GetRoutingID(), ui::MENU_SOURCE_MOUSE,
1335 GetRoutingID(), ui::MENU_SOURCE_MOUSE, point)); 1335 point));
1336 } 1336 }
1337 1337
1338 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { 1338 void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) {
1339 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible)); 1339 Send(new InputMsg_CursorVisibilityChange(GetRoutingID(), is_visible));
1340 } 1340 }
1341 1341
1342 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const { 1342 int64_t RenderWidgetHostImpl::GetLatencyComponentId() const {
1343 return latency_tracker_.latency_component_id(); 1343 return latency_tracker_.latency_component_id();
1344 } 1344 }
1345 1345
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 device::mojom::WakeLockType::PreventDisplaySleep, 2658 device::mojom::WakeLockType::PreventDisplaySleep,
2659 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", 2659 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot",
2660 std::move(request)); 2660 std::move(request));
2661 } 2661 }
2662 } 2662 }
2663 return wake_lock_.get(); 2663 return wake_lock_.get();
2664 } 2664 }
2665 #endif 2665 #endif
2666 2666
2667 } // namespace content 2667 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698