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

Unified Diff: third_party/WebKit/public/platform/WebScrollbarBehavior.h

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
« no previous file with comments | « third_party/WebKit/public/platform/WebPointerProperties.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebScrollbarBehavior.h
diff --git a/third_party/WebKit/public/platform/WebScrollbarBehavior.h b/third_party/WebKit/public/platform/WebScrollbarBehavior.h
index 6d9b8a157468ecedfc6e9f46efc331356233813e..90fd37a25ec50bd9c06157f47766f7bc046f6198 100644
--- a/third_party/WebKit/public/platform/WebScrollbarBehavior.h
+++ b/third_party/WebKit/public/platform/WebScrollbarBehavior.h
@@ -5,6 +5,8 @@
#ifndef WebScrollbarBehavior_h
#define WebScrollbarBehavior_h
+#include "WebPointerProperties.h"
+
namespace blink {
struct WebPoint;
@@ -12,14 +14,8 @@ struct WebRect;
class WebScrollbarBehavior {
public:
- enum Button {
- ButtonNone = -1,
- ButtonLeft,
- ButtonMiddle,
- ButtonRight
- };
virtual ~WebScrollbarBehavior() { }
- virtual bool shouldCenterOnThumb(Button, bool shiftKeyPressed, bool altKeyPressed) { return false; }
+ virtual bool shouldCenterOnThumb(WebPointerProperties::Button, bool shiftKeyPressed, bool altKeyPressed) { return false; }
virtual bool shouldSnapBackToDragOrigin(const WebPoint& eventPoint, const WebRect& scrollbarRect, bool isHorizontal) { return false; }
};
« no previous file with comments | « third_party/WebKit/public/platform/WebPointerProperties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698