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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format Created 4 years, 1 month 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 int verticalScrollbarWidth( 94 int verticalScrollbarWidth(
95 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; 95 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override;
96 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; 96 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override;
97 bool scrollAnimatorEnabled() const override; 97 bool scrollAnimatorEnabled() const override;
98 HostWindow* getHostWindow() const override; 98 HostWindow* getHostWindow() const override;
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 clearScrollAnimators() 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 109
110 private: 110 private:
111 RootFrameViewport(ScrollableArea& visualViewport, 111 RootFrameViewport(ScrollableArea& visualViewport,
112 ScrollableArea& layoutViewport); 112 ScrollableArea& layoutViewport);
113 113
114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; 114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport };
(...skipping 21 matching lines...) Expand all
136 136
137 DEFINE_TYPE_CASTS(RootFrameViewport, 137 DEFINE_TYPE_CASTS(RootFrameViewport,
138 ScrollableArea, 138 ScrollableArea,
139 scrollableArea, 139 scrollableArea,
140 scrollableArea->isRootFrameViewport(), 140 scrollableArea->isRootFrameViewport(),
141 scrollableArea.isRootFrameViewport()); 141 scrollableArea.isRootFrameViewport());
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // RootFrameViewport_h 145 #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