| 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 dc72afdad9c6949bd47ce1ce91fbc5316c683ffc..33151f6227bb742c916da1660c00e753eec64ad2 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -1803,7 +1803,8 @@ WebInputEventResult EventHandler::SendContextMenuEvent(
|
| }
|
|
|
| WebInputEventResult EventHandler::SendContextMenuEventForKey(
|
| - Element* override_target_element) {
|
| + Element* override_target_element,
|
| + WebMenuSourceType source_type) {
|
| FrameView* view = frame_->View();
|
| if (!view)
|
| return WebInputEventResult::kNotHandled;
|
| @@ -1889,7 +1890,10 @@ 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());
|
| + ((source_type == kMenuSourceTouchHandle)
|
| + ? WebInputEvent::kIsCompatibilityEventForTouch
|
| + : WebInputEvent::kNoModifiers),
|
| + TimeTicks::Now().InSeconds());
|
|
|
| // TODO(dtapuska): Transition the mouseEvent to be created really in viewport
|
| // coordinates instead of root frame coordinates.
|
|
|