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

Side by Side Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.h

Issue 2644243002: Move ScrollableArea timer to TaskRunnerTimer. (Closed)
Patch Set: use derived class in unique_ptr Created 3 years, 11 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 RootFrameViewport_h 5 #ifndef RootFrameViewport_h
6 #define RootFrameViewport_h 6 #define RootFrameViewport_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/scroll/ScrollableArea.h" 9 #include "platform/scroll/ScrollableArea.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void serviceScrollAnimations(double) override; 99 void serviceScrollAnimations(double) override;
100 void updateCompositorScrollAnimations() override; 100 void updateCompositorScrollAnimations() override;
101 void cancelProgrammaticScrollAnimation() override; 101 void cancelProgrammaticScrollAnimation() override;
102 ScrollBehavior scrollBehaviorStyle() const override; 102 ScrollBehavior scrollBehaviorStyle() const override;
103 Widget* getWidget() override; 103 Widget* getWidget() override;
104 void clearScrollableArea() override; 104 void clearScrollableArea() override;
105 LayoutBox* layoutBox() const override; 105 LayoutBox* layoutBox() const override;
106 FloatQuad localToVisibleContentQuad(const FloatQuad&, 106 FloatQuad localToVisibleContentQuad(const FloatQuad&,
107 const LayoutObject*, 107 const LayoutObject*,
108 unsigned = 0) const final; 108 unsigned = 0) const final;
109 RefPtr<WebTaskRunner> getTimerTaskRunner() const final;
109 110
110 private: 111 private:
111 RootFrameViewport(ScrollableArea& visualViewport, 112 RootFrameViewport(ScrollableArea& visualViewport,
112 ScrollableArea& layoutViewport); 113 ScrollableArea& layoutViewport);
113 114
114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; 115 enum ViewportToScrollFirst { VisualViewport, LayoutViewport };
115 116
116 ScrollOffset scrollOffsetFromScrollAnimators() const; 117 ScrollOffset scrollOffsetFromScrollAnimators() const;
117 118
118 void distributeScrollBetweenViewports(const ScrollOffset&, 119 void distributeScrollBetweenViewports(const ScrollOffset&,
(...skipping 17 matching lines...) Expand all
136 137
137 DEFINE_TYPE_CASTS(RootFrameViewport, 138 DEFINE_TYPE_CASTS(RootFrameViewport,
138 ScrollableArea, 139 ScrollableArea,
139 scrollableArea, 140 scrollableArea,
140 scrollableArea->isRootFrameViewport(), 141 scrollableArea->isRootFrameViewport(),
141 scrollableArea.isRootFrameViewport()); 142 scrollableArea.isRootFrameViewport());
142 143
143 } // namespace blink 144 } // namespace blink
144 145
145 #endif // RootFrameViewport_h 146 #endif // RootFrameViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/RootFrameViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698