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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void setNeedsPaintInvalidation(ScrollbarPart invalidParts); 180 void setNeedsPaintInvalidation(ScrollbarPart invalidParts);
181 181
182 // Promptly unregister from the theme manager + run finalizers of derived Sc rollbars. 182 // Promptly unregister from the theme manager + run finalizers of derived Sc rollbars.
183 EAGERLY_FINALIZE(); 183 EAGERLY_FINALIZE();
184 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); 184 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW();
185 DECLARE_VIRTUAL_TRACE(); 185 DECLARE_VIRTUAL_TRACE();
186 186
187 protected: 187 protected:
188 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, HostW indow* = 0, ScrollbarTheme* = 0); 188 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, HostW indow* = 0, ScrollbarTheme* = 0);
189 189
190 void autoscrollTimerFired(Timer<Scrollbar>*); 190 void autoscrollTimerFired(TimerBase*);
191 void startTimerIfNeeded(double delay); 191 void startTimerIfNeeded(double delay);
192 void stopTimerIfNeeded(); 192 void stopTimerIfNeeded();
193 void autoscrollPressedPart(double delay); 193 void autoscrollPressedPart(double delay);
194 ScrollDirectionPhysical pressedPartScrollDirectionPhysical(); 194 ScrollDirectionPhysical pressedPartScrollDirectionPhysical();
195 ScrollGranularity pressedPartScrollGranularity(); 195 ScrollGranularity pressedPartScrollGranularity();
196 196
197 Member<ScrollableArea> m_scrollableArea; 197 Member<ScrollableArea> m_scrollableArea;
198 ScrollbarOrientation m_orientation; 198 ScrollbarOrientation m_orientation;
199 ScrollbarControlSize m_controlSize; 199 ScrollbarControlSize m_controlSize;
200 ScrollbarTheme& m_theme; 200 ScrollbarTheme& m_theme;
(...skipping 30 matching lines...) Expand all
231 231
232 bool m_trackNeedsRepaint; 232 bool m_trackNeedsRepaint;
233 bool m_thumbNeedsRepaint; 233 bool m_thumbNeedsRepaint;
234 }; 234 };
235 235
236 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 236 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif // Scrollbar_h 240 #endif // Scrollbar_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698