Chromium Code Reviews| Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.h |
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h |
| index 8c433da061fa448d30c7a4713ef06fb8648ed2e4..0d0b362a71882057b980e4558244007fd6c55771 100644 |
| --- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h |
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h |
| @@ -366,6 +366,10 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin { |
| virtual void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) {} |
| + // Returns the task runner to be used for scrollable area timers. |
| + // Ideally a frame-specific throttled one can be used. |
| + virtual RefPtr<WebTaskRunner> getTimerTaskRunner() const; |
| + |
| protected: |
| ScrollableArea(); |
| @@ -420,7 +424,7 @@ class PLATFORM_EXPORT ScrollableArea : public GarbageCollectedMixin { |
| mutable Member<ScrollAnimatorBase> m_scrollAnimator; |
| mutable Member<ProgrammaticScrollAnimator> m_programmaticScrollAnimator; |
| - std::unique_ptr<Timer<ScrollableArea>> m_fadeOverlayScrollbarsTimer; |
| + std::unique_ptr<TimerBase> m_fadeOverlayScrollbarsTimer; |
|
haraken
2017/01/20 05:45:51
Can we use TimerTaskRunner?
Can we make this Task
jbroman
2017/01/20 15:55:17
Changed to TaskRunnerTimer<ScrollableArea>.
|
| unsigned m_scrollbarOverlayColorTheme : 2; |