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/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // Returns the GraphicsLayer for the global root scroller. | 50 // Returns the GraphicsLayer for the global root scroller. |
51 GraphicsLayer* rootScrollerLayer() const; | 51 GraphicsLayer* rootScrollerLayer() const; |
52 | 52 |
53 // Returns the Element that's the global root scroller. | 53 // Returns the Element that's the global root scroller. |
54 Element* globalRootScroller() const; | 54 Element* globalRootScroller() const; |
55 | 55 |
56 // Called when the root scroller in any frames on the page has changed. | 56 // Called when the root scroller in any frames on the page has changed. |
57 void didChangeRootScroller(); | 57 void didChangeRootScroller(); |
58 | 58 |
| 59 void mainFrameViewResized(); |
| 60 |
59 private: | 61 private: |
60 TopDocumentRootScrollerController(FrameHost&); | 62 TopDocumentRootScrollerController(FrameHost&); |
61 | 63 |
62 // Calculates the Element that should be the globalRootScroller. On a | 64 // Calculates the Element that should be the globalRootScroller. On a |
63 // simple page, this will simply the root frame's effectiveRootScroller but | 65 // simple page, this will simply the root frame's effectiveRootScroller but |
64 // if the root scroller is set to an iframe, this will then descend into | 66 // if the root scroller is set to an iframe, this will then descend into |
65 // the iframe to find its effective root scroller. | 67 // the iframe to find its effective root scroller. |
66 Element* findGlobalRootScrollerElement(); | 68 Element* findGlobalRootScrollerElement(); |
67 | 69 |
68 // Should be called to ensure the correct element is currently set as the | 70 // Should be called to ensure the correct element is currently set as the |
(...skipping 15 matching lines...) Expand all Loading... |
84 // m_viewportApplyScroll has been created, it will always be set on this | 86 // m_viewportApplyScroll has been created, it will always be set on this |
85 // Element. | 87 // Element. |
86 WeakMember<Element> m_globalRootScroller; | 88 WeakMember<Element> m_globalRootScroller; |
87 | 89 |
88 WeakMember<FrameHost> m_frameHost; | 90 WeakMember<FrameHost> m_frameHost; |
89 }; | 91 }; |
90 | 92 |
91 } // namespace blink | 93 } // namespace blink |
92 | 94 |
93 #endif // RootScrollerController_h | 95 #endif // RootScrollerController_h |
OLD | NEW |