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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarTheme.h

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef LayoutScrollbarTheme_h 26 #ifndef LayoutScrollbarTheme_h
27 #define LayoutScrollbarTheme_h 27 #define LayoutScrollbarTheme_h
28 28
29 #include "platform/scroll/ScrollbarTheme.h" 29 #include "platform/scroll/ScrollbarTheme.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class PlatformMouseEvent; 33 class WebMouseEvent;
34 34
35 class LayoutScrollbarTheme final : public ScrollbarTheme { 35 class LayoutScrollbarTheme final : public ScrollbarTheme {
36 public: 36 public:
37 ~LayoutScrollbarTheme() override {} 37 ~LayoutScrollbarTheme() override {}
38 38
39 int scrollbarThickness(ScrollbarControlSize controlSize) override { 39 int scrollbarThickness(ScrollbarControlSize controlSize) override {
40 return ScrollbarTheme::theme().scrollbarThickness(controlSize); 40 return ScrollbarTheme::theme().scrollbarThickness(controlSize);
41 } 41 }
42 42
43 WebScrollbarButtonsPlacement buttonsPlacement() const override { 43 WebScrollbarButtonsPlacement buttonsPlacement() const override {
44 return ScrollbarTheme::theme().buttonsPlacement(); 44 return ScrollbarTheme::theme().buttonsPlacement();
45 } 45 }
46 46
47 void paintScrollCorner(GraphicsContext&, 47 void paintScrollCorner(GraphicsContext&,
48 const DisplayItemClient&, 48 const DisplayItemClient&,
49 const IntRect& cornerRect) override; 49 const IntRect& cornerRect) override;
50 50
51 bool shouldCenterOnThumb(const ScrollbarThemeClient& scrollbar, 51 bool shouldCenterOnThumb(const ScrollbarThemeClient& scrollbar,
52 const PlatformMouseEvent& event) override { 52 const WebMouseEvent& event) override {
53 return ScrollbarTheme::theme().shouldCenterOnThumb(scrollbar, event); 53 return ScrollbarTheme::theme().shouldCenterOnThumb(scrollbar, event);
54 } 54 }
55 bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient& scrollbar, 55 bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient& scrollbar,
56 const PlatformMouseEvent& event) override { 56 const WebMouseEvent& event) override {
57 return ScrollbarTheme::theme().shouldSnapBackToDragOrigin(scrollbar, event); 57 return ScrollbarTheme::theme().shouldSnapBackToDragOrigin(scrollbar, event);
58 } 58 }
59 59
60 double initialAutoscrollTimerDelay() override { 60 double initialAutoscrollTimerDelay() override {
61 return ScrollbarTheme::theme().initialAutoscrollTimerDelay(); 61 return ScrollbarTheme::theme().initialAutoscrollTimerDelay();
62 } 62 }
63 double autoscrollTimerDelay() override { 63 double autoscrollTimerDelay() override {
64 return ScrollbarTheme::theme().autoscrollTimerDelay(); 64 return ScrollbarTheme::theme().autoscrollTimerDelay();
65 } 65 }
66 66
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const Scrollbar&, 109 const Scrollbar&,
110 const IntRect&) override; 110 const IntRect&) override;
111 111
112 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient&, 112 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient&,
113 const IntRect&) override; 113 const IntRect&) override;
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // LayoutScrollbarTheme_h 118 #endif // LayoutScrollbarTheme_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698