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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebPointerProperties.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebScrollbarBehavior_h 5 #ifndef WebScrollbarBehavior_h
6 #define WebScrollbarBehavior_h 6 #define WebScrollbarBehavior_h
7 7
8 #include "WebPointerProperties.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 struct WebPoint; 12 struct WebPoint;
11 struct WebRect; 13 struct WebRect;
12 14
13 class WebScrollbarBehavior { 15 class WebScrollbarBehavior {
14 public: 16 public:
15 enum Button {
16 ButtonNone = -1,
17 ButtonLeft,
18 ButtonMiddle,
19 ButtonRight
20 };
21 virtual ~WebScrollbarBehavior() { } 17 virtual ~WebScrollbarBehavior() { }
22 virtual bool shouldCenterOnThumb(Button, bool shiftKeyPressed, bool altKeyPr essed) { return false; } 18 virtual bool shouldCenterOnThumb(WebPointerProperties::Button, bool shiftKey Pressed, bool altKeyPressed) { return false; }
23 virtual bool shouldSnapBackToDragOrigin(const WebPoint& eventPoint, const We bRect& scrollbarRect, bool isHorizontal) { return false; } 19 virtual bool shouldSnapBackToDragOrigin(const WebPoint& eventPoint, const We bRect& scrollbarRect, bool isHorizontal) { return false; }
24 }; 20 };
25 21
26 } // namespace blink 22 } // namespace blink
27 23
28 #endif 24 #endif
OLDNEW
« 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