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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // the iframe to find its effective root scroller. | 86 // the iframe to find its effective root scroller. |
87 Element* findGlobalRootScrollerElement(); | 87 Element* findGlobalRootScrollerElement(); |
88 | 88 |
89 // Should be called to ensure the correct element is currently set as the | 89 // Should be called to ensure the correct element is currently set as the |
90 // global root scroller and that all appropriate state changes are made if | 90 // global root scroller and that all appropriate state changes are made if |
91 // it changes. | 91 // it changes. |
92 void recomputeGlobalRootScroller(); | 92 void recomputeGlobalRootScroller(); |
93 | 93 |
94 Document* topDocument() const; | 94 Document* topDocument() const; |
95 | 95 |
96 void setNeedsCompositingInputsUpdateOnGlobalRootScroller(); | |
97 | |
98 // The apply-scroll callback that moves browser controls and produces | 96 // The apply-scroll callback that moves browser controls and produces |
99 // overscroll effects. This class makes sure this callback is set on the | 97 // overscroll effects. This class makes sure this callback is set on the |
100 // appropriate root scroller element. | 98 // appropriate root scroller element. |
101 Member<ViewportScrollCallback> m_viewportApplyScroll; | 99 Member<ViewportScrollCallback> m_viewportApplyScroll; |
102 | 100 |
103 // The page level root scroller. i.e. The actual element for which | 101 // The page level root scroller. i.e. The actual element for which |
104 // scrolling should move browser controls and produce overscroll glow. Once an | 102 // scrolling should move browser controls and produce overscroll glow. Once an |
105 // m_viewportApplyScroll has been created, it will always be set on this | 103 // m_viewportApplyScroll has been created, it will always be set on this |
106 // Element. | 104 // Element. |
107 WeakMember<Element> m_globalRootScroller; | 105 WeakMember<Element> m_globalRootScroller; |
108 | 106 |
109 Member<Page> m_page; | 107 Member<Page> m_page; |
110 }; | 108 }; |
111 | 109 |
112 } // namespace blink | 110 } // namespace blink |
113 | 111 |
114 #endif // RootScrollerController_h | 112 #endif // RootScrollerController_h |
OLD | NEW |