| 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.
|
|
|