| 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 PaintLayer; | 15 class PaintLayer; |
| 16 class PaintLayerScrollableArea; | 16 class PaintLayerScrollableArea; |
| 17 class ScrollableArea; | |
| 18 | 17 |
| 19 // Manages the root scroller associated with a given document. The root | 18 // Manages the root scroller associated with a given document. The root |
| 20 // scroller causes browser controls movement, overscroll effects and prevents | 19 // scroller causes browser controls movement, overscroll effects and prevents |
| 21 // chaining scrolls up further in the DOM. It can be set from script using | 20 // chaining scrolls up further in the DOM. It can be set from script using |
| 22 // document.setRootScroller. | 21 // document.setRootScroller. |
| 23 // | 22 // |
| 24 // There are two notions of a root scroller in this class: m_rootScroller and | 23 // There are two notions of a root scroller in this class: m_rootScroller and |
| 25 // m_effectiveRootScroller. The former is the Element that was set as the root | 24 // m_effectiveRootScroller. The former is the Element that was set as the root |
| 26 // scroller using document.setRootScroller. If the page didn't set a root | 25 // scroller using document.setRootScroller. If the page didn't set a root |
| 27 // scroller this will be nullptr. The "effective" root scroller is the current | 26 // 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... |
| 103 | 102 |
| 104 // The element currently being used as the root scroller in this Document. | 103 // The element currently being used as the root scroller in this Document. |
| 105 // If the m_rootScroller is valid this will point to it. Otherwise, it'll | 104 // If the m_rootScroller is valid this will point to it. Otherwise, it'll |
| 106 // use a default Element. | 105 // use a default Element. |
| 107 WeakMember<Element> m_effectiveRootScroller; | 106 WeakMember<Element> m_effectiveRootScroller; |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace blink | 109 } // namespace blink |
| 111 | 110 |
| 112 #endif // RootScrollerController_h | 111 #endif // RootScrollerController_h |
| OLD | NEW |