OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 TopDocumentRootScrollerController_h | 5 #ifndef TopDocumentRootScrollerController_h |
6 #define TopDocumentRootScrollerController_h | 6 #define TopDocumentRootScrollerController_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/page/scrolling/RootScrollerController.h" | 9 #include "core/page/scrolling/RootScrollerController.h" |
10 #include "platform/geometry/IntSize.h" | 10 #include "platform/geometry/IntSize.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 GraphicsLayer* rootScrollerLayer() const; | 58 GraphicsLayer* rootScrollerLayer() const; |
59 | 59 |
60 PaintLayer* rootScrollerPaintLayer() const; | 60 PaintLayer* rootScrollerPaintLayer() const; |
61 | 61 |
62 // Returns the Element that's the global root scroller. | 62 // Returns the Element that's the global root scroller. |
63 Element* globalRootScroller() const; | 63 Element* globalRootScroller() const; |
64 | 64 |
65 // Called when the root scroller in any frames on the page has changed. | 65 // Called when the root scroller in any frames on the page has changed. |
66 void didChangeRootScroller(); | 66 void didChangeRootScroller(); |
67 | 67 |
68 void mainFrameViewResized(); | |
69 | |
70 // Returns the ScrollableArea associated with the globalRootScroller(). Note, | 68 // Returns the ScrollableArea associated with the globalRootScroller(). Note, |
71 // this isn't necessarily the PLSA belonging to the root scroller Element's | 69 // this isn't necessarily the PLSA belonging to the root scroller Element's |
72 // LayoutBox. If the root scroller is the documentElement then we use the | 70 // LayoutBox. If the root scroller is the documentElement then we use the |
73 // FrameView (or LayoutView if root-layer-scrolls). | 71 // FrameView (or LayoutView if root-layer-scrolls). |
74 ScrollableArea* rootScrollerArea() const; | 72 ScrollableArea* rootScrollerArea() const; |
75 | 73 |
76 // Returns the size we should use for the root scroller, accounting for top | 74 // Returns the size we should use for the root scroller, accounting for top |
77 // controls adjustment and using the root FrameView. | 75 // controls adjustment and using the root FrameView. |
78 IntSize rootScrollerVisibleArea() const; | 76 IntSize rootScrollerVisibleArea() const; |
79 | 77 |
(...skipping 23 matching lines...) Expand all Loading... |
103 // m_viewportApplyScroll has been created, it will always be set on this | 101 // m_viewportApplyScroll has been created, it will always be set on this |
104 // Element. | 102 // Element. |
105 WeakMember<Element> m_globalRootScroller; | 103 WeakMember<Element> m_globalRootScroller; |
106 | 104 |
107 Member<Page> m_page; | 105 Member<Page> m_page; |
108 }; | 106 }; |
109 | 107 |
110 } // namespace blink | 108 } // namespace blink |
111 | 109 |
112 #endif // RootScrollerController_h | 110 #endif // RootScrollerController_h |
OLD | NEW |