| 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 731624bfcf1c7a13ac042921bfa12bee9e1a3daf..8aadf84044a353d2123124a369d1265ac3cc1f84 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -1811,7 +1811,8 @@ static bool ShouldShowContextMenuAtSelection(const FrameSelection& selection) {
|
| }
|
|
|
| WebInputEventResult EventHandler::SendContextMenuEventForKey(
|
| - Element* override_target_element) {
|
| + Element* override_target_element,
|
| + WebMenuSourceType source_type) {
|
| FrameView* view = frame_->View();
|
| if (!view)
|
| return WebInputEventResult::kNotHandled;
|
| @@ -1892,7 +1893,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.
|
|
|