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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

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: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index a419836a15b2f6fc9875f53c84e1b0189ab0cd4e..bcd89f4a521952c71269a4538d8d01c36bc6e62b 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -282,13 +282,13 @@ void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol
const WebMouseEvent* mouseEvent = static_cast<const WebMouseEvent*>(inputEvent);
switch (mouseEvent->button) {
- case WebMouseEvent::ButtonLeft:
+ case WebMouseEvent::Button::Left:
buttonNumber = 0;
break;
- case WebMouseEvent::ButtonMiddle:
+ case WebMouseEvent::Button::Middle:
buttonNumber = 1;
break;
- case WebMouseEvent::ButtonRight:
+ case WebMouseEvent::Button::Right:
buttonNumber = 2;
break;
default:
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698