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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.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/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index af5a8d2bd14acb9b3e5915ea1186c7a95963119a..517be6b2cdd123e78831e3ff0757cf5b9fb8bb03 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -537,13 +537,13 @@ static bool allowCreatingBackgroundTabs()
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/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698