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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_aura.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/synthetic_gesture_target_aura.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
index d7b47ba423c7582b0c196f9295bd6095005afa98..64e1c16b9f72172561d84f1da9cb712e9c378fa6 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
@@ -109,13 +109,13 @@ WebMouseEventTypeToEventType(blink::WebInputEvent::Type web_type) {
int WebMouseEventButtonToFlags(blink::WebMouseEvent::Button button) {
switch (button) {
- case blink::WebMouseEvent::ButtonLeft:
+ case blink::WebMouseEvent::Button::Left:
return ui::EF_LEFT_MOUSE_BUTTON;
- case blink::WebMouseEvent::ButtonMiddle:
+ case blink::WebMouseEvent::Button::Middle:
return ui::EF_MIDDLE_MOUSE_BUTTON;
- case blink::WebMouseEvent::ButtonRight:
+ case blink::WebMouseEvent::Button::Right:
return ui::EF_RIGHT_MOUSE_BUTTON;
default:

Powered by Google App Engine
This is Rietveld 408576698