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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: 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 1554c160209746c014aef38a7062dd7aeea547db..e414ea2ccf0db5b9edef735e03cd645ef696a8c2 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -301,6 +301,9 @@ WebInputEventResult GestureManager::HandleGestureTap(
tapped_position_in_viewport, tapped_node,
dom_tree_changed || style_changed);
}
+
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection(
aelias_OOO_until_Jul13 2017/05/23 20:52:05 How about putting this behind "if (event_result ==
amaralp1 2017/05/24 08:30:34 Done.
+ kMenuSourceTouch);
return event_result;
}
@@ -333,6 +336,8 @@ WebInputEventResult GestureManager::HandleGestureLongPress(
if (inner_node && inner_node->GetLayoutObject() &&
selection_controller_->HandleGestureLongPress(hit_test_result)) {
mouse_event_manager_->FocusDocumentView();
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection(
+ kMenuSourceLongPress);
return WebInputEventResult::kHandledSystem;
}

Powered by Google App Engine
This is Rietveld 408576698