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

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

Issue 2826893003: Remove ScrollableArea::GetFrameViewBase and move ScheduleAnimation into subclasses. (Closed)
Patch Set: Remove UNREACHED Created 3 years, 8 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 int VerticalScrollbarWidth( 91 int VerticalScrollbarWidth(
92 OverlayScrollbarClipBehavior = 92 OverlayScrollbarClipBehavior =
93 kIgnorePlatformOverlayScrollbarSize) const override; 93 kIgnorePlatformOverlayScrollbarSize) const override;
94 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override; 94 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override;
95 bool ScrollAnimatorEnabled() const override; 95 bool ScrollAnimatorEnabled() const override;
96 HostWindow* GetHostWindow() const override; 96 HostWindow* GetHostWindow() const override;
97 void ServiceScrollAnimations(double) override; 97 void ServiceScrollAnimations(double) override;
98 void UpdateCompositorScrollAnimations() override; 98 void UpdateCompositorScrollAnimations() override;
99 void CancelProgrammaticScrollAnimation() override; 99 void CancelProgrammaticScrollAnimation() override;
100 ScrollBehavior ScrollBehaviorStyle() const override; 100 ScrollBehavior ScrollBehaviorStyle() const override;
101 FrameViewBase* GetFrameViewBase() override;
102 void ClearScrollableArea() override; 101 void ClearScrollableArea() override;
103 LayoutBox* GetLayoutBox() const override; 102 LayoutBox* GetLayoutBox() const override;
104 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, 103 FloatQuad LocalToVisibleContentQuad(const FloatQuad&,
105 const LayoutObject*, 104 const LayoutObject*,
106 unsigned = 0) const final; 105 unsigned = 0) const final;
107 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; 106 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final;
108 107
109 private: 108 private:
110 RootFrameViewport(ScrollableArea& visual_viewport, 109 RootFrameViewport(ScrollableArea& visual_viewport,
111 ScrollableArea& layout_viewport); 110 ScrollableArea& layout_viewport);
(...skipping 23 matching lines...) Expand all
135 134
136 DEFINE_TYPE_CASTS(RootFrameViewport, 135 DEFINE_TYPE_CASTS(RootFrameViewport,
137 ScrollableArea, 136 ScrollableArea,
138 scrollableArea, 137 scrollableArea,
139 scrollableArea->IsRootFrameViewport(), 138 scrollableArea->IsRootFrameViewport(),
140 scrollableArea.IsRootFrameViewport()); 139 scrollableArea.IsRootFrameViewport());
141 140
142 } // namespace blink 141 } // namespace blink
143 142
144 #endif // RootFrameViewport_h 143 #endif // RootFrameViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698