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

Side by Side Diff: Source/platform/mac/ScrollAnimatorMac.h

Issue 630853002: Replacing the OVERRIDE with override in third_party/WebKit/Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase build fix Created 6 years, 2 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) 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2010, 2011 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 RetainPtr<WebScrollbarPainterDelegate> m_horizontalScrollbarPainterDelegate; 78 RetainPtr<WebScrollbarPainterDelegate> m_horizontalScrollbarPainterDelegate;
79 RetainPtr<WebScrollbarPainterDelegate> m_verticalScrollbarPainterDelegate; 79 RetainPtr<WebScrollbarPainterDelegate> m_verticalScrollbarPainterDelegate;
80 80
81 void initialScrollbarPaintTimerFired(Timer<ScrollAnimatorMac>*); 81 void initialScrollbarPaintTimerFired(Timer<ScrollAnimatorMac>*);
82 Timer<ScrollAnimatorMac> m_initialScrollbarPaintTimer; 82 Timer<ScrollAnimatorMac> m_initialScrollbarPaintTimer;
83 83
84 void sendContentAreaScrolledTimerFired(Timer<ScrollAnimatorMac>*); 84 void sendContentAreaScrolledTimerFired(Timer<ScrollAnimatorMac>*);
85 Timer<ScrollAnimatorMac> m_sendContentAreaScrolledTimer; 85 Timer<ScrollAnimatorMac> m_sendContentAreaScrolledTimer;
86 FloatSize m_contentAreaScrolledTimerScrollDelta; 86 FloatSize m_contentAreaScrolledTimerScrollDelta;
87 87
88 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at delta) OVERRIDE; 88 virtual bool scroll(ScrollbarOrientation, ScrollGranularity, float step, flo at delta) override;
89 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&) OVERRIDE; 89 virtual void scrollToOffsetWithoutAnimation(const FloatPoint&) override;
90 90
91 #if USE(RUBBER_BANDING) 91 #if USE(RUBBER_BANDING)
92 virtual bool handleWheelEvent(const PlatformWheelEvent&) OVERRIDE; 92 virtual bool handleWheelEvent(const PlatformWheelEvent&) override;
93 #endif 93 #endif
94 94
95 virtual void handleWheelEventPhase(PlatformWheelEventPhase) OVERRIDE; 95 virtual void handleWheelEventPhase(PlatformWheelEventPhase) override;
96 96
97 virtual void cancelAnimations() OVERRIDE; 97 virtual void cancelAnimations() override;
98 virtual void setIsActive() OVERRIDE; 98 virtual void setIsActive() override;
99 99
100 virtual void contentAreaWillPaint() const OVERRIDE; 100 virtual void contentAreaWillPaint() const override;
101 virtual void mouseEnteredContentArea() const OVERRIDE; 101 virtual void mouseEnteredContentArea() const override;
102 virtual void mouseExitedContentArea() const OVERRIDE; 102 virtual void mouseExitedContentArea() const override;
103 virtual void mouseMovedInContentArea() const OVERRIDE; 103 virtual void mouseMovedInContentArea() const override;
104 virtual void mouseEnteredScrollbar(Scrollbar*) const OVERRIDE; 104 virtual void mouseEnteredScrollbar(Scrollbar*) const override;
105 virtual void mouseExitedScrollbar(Scrollbar*) const OVERRIDE; 105 virtual void mouseExitedScrollbar(Scrollbar*) const override;
106 virtual void willStartLiveResize() OVERRIDE; 106 virtual void willStartLiveResize() override;
107 virtual void contentsResized() const OVERRIDE; 107 virtual void contentsResized() const override;
108 virtual void willEndLiveResize() OVERRIDE; 108 virtual void willEndLiveResize() override;
109 virtual void contentAreaDidShow() const OVERRIDE; 109 virtual void contentAreaDidShow() const override;
110 virtual void contentAreaDidHide() const OVERRIDE; 110 virtual void contentAreaDidHide() const override;
111 void didBeginScrollGesture() const; 111 void didBeginScrollGesture() const;
112 void didEndScrollGesture() const; 112 void didEndScrollGesture() const;
113 void mayBeginScrollGesture() const; 113 void mayBeginScrollGesture() const;
114 114
115 virtual void finishCurrentScrollAnimations() OVERRIDE; 115 virtual void finishCurrentScrollAnimations() override;
116 116
117 virtual void didAddVerticalScrollbar(Scrollbar*) OVERRIDE; 117 virtual void didAddVerticalScrollbar(Scrollbar*) override;
118 virtual void willRemoveVerticalScrollbar(Scrollbar*) OVERRIDE; 118 virtual void willRemoveVerticalScrollbar(Scrollbar*) override;
119 virtual void didAddHorizontalScrollbar(Scrollbar*) OVERRIDE; 119 virtual void didAddHorizontalScrollbar(Scrollbar*) override;
120 virtual void willRemoveHorizontalScrollbar(Scrollbar*) OVERRIDE; 120 virtual void willRemoveHorizontalScrollbar(Scrollbar*) override;
121 121
122 virtual bool shouldScrollbarParticipateInHitTesting(Scrollbar*) OVERRIDE; 122 virtual bool shouldScrollbarParticipateInHitTesting(Scrollbar*) override;
123 123
124 virtual void notifyContentAreaScrolled(const FloatSize& delta) OVERRIDE; 124 virtual void notifyContentAreaScrolled(const FloatSize& delta) override;
125 125
126 FloatPoint adjustScrollPositionIfNecessary(const FloatPoint&) const; 126 FloatPoint adjustScrollPositionIfNecessary(const FloatPoint&) const;
127 127
128 void immediateScrollTo(const FloatPoint&); 128 void immediateScrollTo(const FloatPoint&);
129 129
130 virtual bool isRubberBandInProgress() const OVERRIDE; 130 virtual bool isRubberBandInProgress() const override;
131 131
132 #if USE(RUBBER_BANDING) 132 #if USE(RUBBER_BANDING)
133 /// ScrollElasticityControllerClient member functions. 133 /// ScrollElasticityControllerClient member functions.
134 virtual IntSize stretchAmount() OVERRIDE; 134 virtual IntSize stretchAmount() override;
135 virtual bool allowsHorizontalStretching() OVERRIDE; 135 virtual bool allowsHorizontalStretching() override;
136 virtual bool allowsVerticalStretching() OVERRIDE; 136 virtual bool allowsVerticalStretching() override;
137 virtual bool pinnedInDirection(const FloatSize&) OVERRIDE; 137 virtual bool pinnedInDirection(const FloatSize&) override;
138 virtual bool canScrollHorizontally() OVERRIDE; 138 virtual bool canScrollHorizontally() override;
139 virtual bool canScrollVertically() OVERRIDE; 139 virtual bool canScrollVertically() override;
140 virtual blink::IntPoint absoluteScrollPosition() OVERRIDE; 140 virtual blink::IntPoint absoluteScrollPosition() override;
141 virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize& ) OVERRIDE; 141 virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize& ) override;
142 virtual void immediateScrollBy(const FloatSize&) OVERRIDE; 142 virtual void immediateScrollBy(const FloatSize&) override;
143 virtual void startSnapRubberbandTimer() OVERRIDE; 143 virtual void startSnapRubberbandTimer() override;
144 virtual void stopSnapRubberbandTimer() OVERRIDE; 144 virtual void stopSnapRubberbandTimer() override;
145 virtual void adjustScrollPositionToBoundsIfNecessary() OVERRIDE; 145 virtual void adjustScrollPositionToBoundsIfNecessary() override;
146 146
147 bool pinnedInDirection(float deltaX, float deltaY); 147 bool pinnedInDirection(float deltaX, float deltaY);
148 void snapRubberBandTimerFired(Timer<ScrollAnimatorMac>*); 148 void snapRubberBandTimerFired(Timer<ScrollAnimatorMac>*);
149 149
150 ScrollElasticityController m_scrollElasticityController; 150 ScrollElasticityController m_scrollElasticityController;
151 Timer<ScrollAnimatorMac> m_snapRubberBandTimer; 151 Timer<ScrollAnimatorMac> m_snapRubberBandTimer;
152 #endif 152 #endif
153 153
154 bool m_haveScrolledSincePageLoad; 154 bool m_haveScrolledSincePageLoad;
155 bool m_needsScrollerStyleUpdate; 155 bool m_needsScrollerStyleUpdate;
156 IntRect m_visibleScrollerThumbRect; 156 IntRect m_visibleScrollerThumbRect;
157 }; 157 };
158 158
159 } // namespace blink 159 } // namespace blink
160 160
161 #endif // ScrollAnimatorMac_h 161 #endif // ScrollAnimatorMac_h
OLDNEW
« no previous file with comments | « Source/platform/image-decoders/webp/WEBPImageDecoder.h ('k') | Source/platform/mac/ScrollElasticityControllerTest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698