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 RootScrollerController_h | 5 #ifndef RootScrollerController_h |
6 #define RootScrollerController_h | 6 #define RootScrollerController_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class Document; | 13 class Document; |
14 class Element; | 14 class Element; |
15 class GraphicsLayer; | |
16 class PaintLayer; | 15 class PaintLayer; |
17 class PaintLayerScrollableArea; | 16 class PaintLayerScrollableArea; |
18 class ScrollableArea; | 17 class ScrollableArea; |
19 class ScrollStateCallback; | |
20 | 18 |
21 // Manages the root scroller associated with a given document. The root | 19 // Manages the root scroller associated with a given document. The root |
22 // scroller causes browser controls movement, overscroll effects and prevents | 20 // scroller causes browser controls movement, overscroll effects and prevents |
23 // chaining scrolls up further in the DOM. It can be set from script using | 21 // chaining scrolls up further in the DOM. It can be set from script using |
24 // document.setRootScroller. | 22 // document.setRootScroller. |
25 // | 23 // |
26 // There are two notions of a root scroller in this class: m_rootScroller and | 24 // There are two notions of a root scroller in this class: m_rootScroller and |
27 // m_effectiveRootScroller. The former is the Element that was set as the root | 25 // m_effectiveRootScroller. The former is the Element that was set as the root |
28 // scroller using document.setRootScroller. If the page didn't set a root | 26 // scroller using document.setRootScroller. If the page didn't set a root |
29 // scroller this will be nullptr. The "effective" root scroller is the current | 27 // scroller this will be nullptr. The "effective" root scroller is the current |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 103 |
106 // The element currently being used as the root scroller in this Document. | 104 // The element currently being used as the root scroller in this Document. |
107 // If the m_rootScroller is valid this will point to it. Otherwise, it'll | 105 // If the m_rootScroller is valid this will point to it. Otherwise, it'll |
108 // use a default Element. | 106 // use a default Element. |
109 WeakMember<Element> m_effectiveRootScroller; | 107 WeakMember<Element> m_effectiveRootScroller; |
110 }; | 108 }; |
111 | 109 |
112 } // namespace blink | 110 } // namespace blink |
113 | 111 |
114 #endif // RootScrollerController_h | 112 #endif // RootScrollerController_h |
OLD | NEW |