| Index: content/browser/renderer_host/input/touch_emulator.cc
|
| diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
|
| index c7ec22f1a9203cfb7620ee163cd8c091bcdda889..ac58300cedd1000c25d245066eedab1bb1f712ff 100644
|
| --- a/content/browser/renderer_host/input/touch_emulator.cc
|
| +++ b/content/browser/renderer_host/input/touch_emulator.cc
|
| @@ -13,6 +13,7 @@
|
| #include "third_party/WebKit/public/platform/WebCursorInfo.h"
|
| #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
|
| #include "third_party/WebKit/public/platform/WebMouseEvent.h"
|
| +#include "ui/base/ui_base_types.h"
|
| #include "ui/events/base_event_utils.h"
|
| #include "ui/events/blink/blink_event_util.h"
|
| #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
|
| @@ -160,8 +161,10 @@ bool TouchEmulator::HandleMouseEvent(const WebMouseEvent& mouse_event) {
|
|
|
| if (mouse_event.button == WebMouseEvent::Button::kRight &&
|
| mouse_event.GetType() == WebInputEvent::kMouseDown) {
|
| - client_->ShowContextMenuAtPoint(gfx::Point(
|
| - mouse_event.PositionInWidget().x, mouse_event.PositionInWidget().y));
|
| + client_->ShowContextMenuAtPoint(
|
| + gfx::Point(mouse_event.PositionInWidget().x,
|
| + mouse_event.PositionInWidget().y),
|
| + ui::MENU_SOURCE_MOUSE);
|
| }
|
|
|
| if (mouse_event.button != WebMouseEvent::Button::kLeft)
|
|
|