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

Unified Diff: third_party/WebKit/Source/core/input/GestureManager.cpp

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: Fixing rebase bug Created 3 years, 8 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: third_party/WebKit/Source/core/input/GestureManager.cpp
diff --git a/third_party/WebKit/Source/core/input/GestureManager.cpp b/third_party/WebKit/Source/core/input/GestureManager.cpp
index 8babf0f96f24f75dd48bb580e0c141a14bc2c61f..0944925f922bcb823a03dd491d0310ac052d0fbf 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -301,6 +301,8 @@ WebInputEventResult GestureManager::HandleGestureTap(
tapped_position_in_viewport, tapped_node,
dom_tree_changed || style_changed);
}
+
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection();
return event_result;
}
@@ -334,6 +336,7 @@ WebInputEventResult GestureManager::HandleGestureLongPress(
selection_controller_->HandleGestureLongPress(gesture_event,
hit_test_result)) {
mouse_event_manager_->FocusDocumentView();
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection();
return WebInputEventResult::kHandledSystem;
}

Powered by Google App Engine
This is Rietveld 408576698