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

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

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: fix 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: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 88231b20507d3c80971eb3deb373786d143eaaad..a1a1d219f35869585b2e862d6210485ce77cc44a 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1801,7 +1801,8 @@ WebInputEventResult EventHandler::SendContextMenuEvent(
}
WebInputEventResult EventHandler::SendContextMenuEventForKey(
- Element* override_target_element) {
+ Element* override_target_element,
+ bool from_touch_handle) {
FrameView* view = frame_->View();
if (!view)
return WebInputEventResult::kNotHandled;
@@ -1887,7 +1888,9 @@ WebInputEventResult EventHandler::SendContextMenuEventForKey(
WebFloatPoint(location_in_root_frame.X(), location_in_root_frame.Y()),
WebFloatPoint(global_position.X(), global_position.Y()),
WebPointerProperties::Button::kNoButton, /* clickCount */ 0,
- WebInputEvent::kNoModifiers, TimeTicks::Now().InSeconds());
+ (from_touch_handle ? WebInputEvent::kIsCompatibilityEventForTouch
+ : WebInputEvent::kNoModifiers),
+ TimeTicks::Now().InSeconds());
// TODO(dtapuska): Transition the mouseEvent to be created really in viewport
// coordinates instead of root frame coordinates.

Powered by Google App Engine
This is Rietveld 408576698