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

Unified Diff: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed naming 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
index d9d142aa834341bcda966ca450633630589e0571..8fb31d7467474617d29b7f3414161fac59e3cafa 100644
--- a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
@@ -466,9 +466,8 @@ void TouchSelectionControllerClientAura::RunContextMenu() {
gfx::PointF(anchor_rect.CenterPoint().x(), anchor_rect.y());
RenderWidgetHostImpl* host =
RenderWidgetHostImpl::From(rwhva_->GetRenderWidgetHost());
- host->Send(new ViewMsg_ShowContextMenu(host->GetRoutingID(),
- ui::MENU_SOURCE_TOUCH_EDIT_MENU,
- gfx::ToRoundedPoint(anchor_point)));
+ host->ShowContextMenuAtPoint(gfx::ToRoundedPoint(anchor_point),
+ ui::MENU_SOURCE_TOUCH_EDIT_MENU);
// Hide selection handles after getting rect-between-bounds from touch
// selection controller; otherwise, rect would be empty and the above

Powered by Google App Engine
This is Rietveld 408576698