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; } |
}; |