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

Unified Diff: content/browser/renderer_host/input/touch_emulator.cc

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_emulator_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698