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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: nits and fix tests 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: 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 5961df0856725ea312feeb072b36ced08171d803..9a6f4ad523a2f72a9fe0b206e97c3903bf0a426c 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -301,6 +301,12 @@ WebInputEventResult GestureManager::HandleGestureTap(
tapped_position_in_viewport, tapped_node,
dom_tree_changed || style_changed);
}
+
+ if (event_result == WebInputEventResult::kHandledSystem) {
bokan 2017/05/24 19:15:52 Is a synthetic mouse up/release being kHandledSyst
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection(
+ kMenuSourceTouch);
+ }
+
return event_result;
}
@@ -333,7 +339,6 @@ WebInputEventResult GestureManager::HandleGestureLongPress(
if (inner_node && inner_node->GetLayoutObject() &&
selection_controller_->HandleGestureLongPress(hit_test_result)) {
mouse_event_manager_->FocusDocumentView();
- return WebInputEventResult::kHandledSystem;
}
return SendContextMenuEventForGesture(targeted_event);

Powered by Google App Engine
This is Rietveld 408576698