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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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
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 f09716a68c8e3ec8019d51afffcd99cd12dac98e..cacaf5560da6420f5cbf45882662722e14d5e277 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -141,12 +141,12 @@ bool TouchEmulator::HandleMouseEvent(const WebMouseEvent& mouse_event) {
if (!enabled())
return false;
- if (mouse_event.button == WebMouseEvent::ButtonRight &&
+ if (mouse_event.button == WebMouseEvent::Button::Right &&
mouse_event.type == WebInputEvent::MouseDown) {
client_->ShowContextMenuAtPoint(gfx::Point(mouse_event.x, mouse_event.y));
}
- if (mouse_event.button != WebMouseEvent::ButtonLeft)
+ if (mouse_event.button != WebMouseEvent::Button::Left)
return true;
if (mouse_event.type == WebInputEvent::MouseMove) {

Powered by Google App Engine
This is Rietveld 408576698