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

Side by Side Diff: public/platform/WebScrollbarBehavior.h

Issue 151483008: Re-add snap-back behavior (Blink side) (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
OLDNEW
(Empty)
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.
4
5 #ifndef WebScrollbarBehavior_h
6 #define WebScrollbarBehavior_h
7
8 namespace blink {
9
10 struct WebPoint;
11 struct WebRect;
12
13 class WebScrollbarBehavior {
14 public:
15 // These match the values for WebCore::MouseButton.
Peter Kasting 2014/02/25 00:01:58 Let me know if I need a comment over on that enum
abarth-chromium 2014/02/25 07:18:38 Checkout out AssertMatchingEnums.cpp. We usually
16 enum Button {
17 ButtonNone = -1,
18 ButtonLeft,
19 ButtonMiddle,
20 ButtonRight
21 };
22 virtual bool shouldCenterOnThumb(Button, bool shiftKeyPressed, bool altKeyPr essed) { return false; }
23 virtual bool shouldSnapBackToDragOrigin(const WebPoint& eventPoint, const We bRect& scrollbarRect, bool isHorizontal) { return false; }
24 };
25
26 } // namespace blink
27
28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698