Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebScrollbarBehavior.h
blob6d9b8a157468ecedfc6e9f46efc331356233813e
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebScrollbarBehavior_h
6 #define WebScrollbarBehavior_h
8 namespace blink {
10 struct WebPoint;
11 struct WebRect;
13 class WebScrollbarBehavior {
14 public:
15 enum Button {
16 ButtonNone = -1,
17 ButtonLeft,
18 ButtonMiddle,
19 ButtonRight
21 virtual ~WebScrollbarBehavior() { }
22 virtual bool shouldCenterOnThumb(Button, bool shiftKeyPressed, bool altKeyPressed) { return false; }
23 virtual bool shouldSnapBackToDragOrigin(const WebPoint& eventPoint, const WebRect& scrollbarRect, bool isHorizontal) { return false; }
26 } // namespace blink
28 #endif