Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h

Issue 2887053002: Remove scroll_clip_layer dependency from viewport layer tracking (Closed)
Patch Set: Cleanup return stmt Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Returns true if the given ScrollStateCallback is the 50 // Returns true if the given ScrollStateCallback is the
51 // ViewportScrollCallback managed by this class. 51 // ViewportScrollCallback managed by this class.
52 // TODO(bokan): Temporarily needed to allow ScrollCustomization to 52 // TODO(bokan): Temporarily needed to allow ScrollCustomization to
53 // differentiate between real custom callback and the built-in viewport 53 // differentiate between real custom callback and the built-in viewport
54 // apply scroll. crbug.com/623079. 54 // apply scroll. crbug.com/623079.
55 bool IsViewportScrollCallback(const ScrollStateCallback*) const; 55 bool IsViewportScrollCallback(const ScrollStateCallback*) const;
56 56
57 // Returns the GraphicsLayer for the global root scroller. 57 // Returns the GraphicsLayer for the global root scroller.
58 GraphicsLayer* RootScrollerLayer() const; 58 GraphicsLayer* RootScrollerLayer() const;
59 59
60 // Returns the GraphicsLayer for the global root scroll container.
61 GraphicsLayer* RootContainerLayer() const;
62
60 PaintLayer* RootScrollerPaintLayer() const; 63 PaintLayer* RootScrollerPaintLayer() const;
61 64
62 // Returns the Element that's the global root scroller. See README.md for 65 // Returns the Element that's the global root scroller. See README.md for
63 // the difference between this and the root scroller types in 66 // the difference between this and the root scroller types in
64 // RootScrollerController. 67 // RootScrollerController.
65 Element* GlobalRootScroller() const; 68 Element* GlobalRootScroller() const;
66 69
67 // Called when the root scroller in any frames on the page has changed. 70 // Called when the root scroller in any frames on the page has changed.
68 void DidChangeRootScroller(); 71 void DidChangeRootScroller();
69 72
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // m_viewportApplyScroll has been created, it will always be set on this 106 // m_viewportApplyScroll has been created, it will always be set on this
104 // Element. 107 // Element.
105 WeakMember<Element> global_root_scroller_; 108 WeakMember<Element> global_root_scroller_;
106 109
107 Member<Page> page_; 110 Member<Page> page_;
108 }; 111 };
109 112
110 } // namespace blink 113 } // namespace blink
111 114
112 #endif // RootScrollerController_h 115 #endif // RootScrollerController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698