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

Side by Side Diff: sky/engine/core/rendering/RenderLayerScrollableArea.h

Issue 721473002: Removed ScrollingCoordinator and a bunch of composited scrolling' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual ~RenderLayerScrollableArea(); 60 virtual ~RenderLayerScrollableArea();
61 61
62 bool hasHorizontalScrollbar() const { return horizontalScrollbar(); } 62 bool hasHorizontalScrollbar() const { return horizontalScrollbar(); }
63 bool hasVerticalScrollbar() const { return verticalScrollbar(); } 63 bool hasVerticalScrollbar() const { return verticalScrollbar(); }
64 64
65 Scrollbar* horizontalScrollbar() const override { return m_hBar.get(); } 65 Scrollbar* horizontalScrollbar() const override { return m_hBar.get(); }
66 Scrollbar* verticalScrollbar() const override { return m_vBar.get(); } 66 Scrollbar* verticalScrollbar() const override { return m_vBar.get(); }
67 67
68 HostWindow* hostWindow() const override; 68 HostWindow* hostWindow() const override;
69 69
70 GraphicsLayer* layerForScrolling() const override;
71 GraphicsLayer* layerForHorizontalScrollbar() const override;
72 GraphicsLayer* layerForVerticalScrollbar() const override;
73 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; 70 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
74 bool isActive() const override; 71 bool isActive() const override;
75 IntRect scrollCornerRect() const; 72 IntRect scrollCornerRect() const;
76 IntRect convertFromScrollbarToContainingView(const Scrollbar*, const IntRect &) const override; 73 IntRect convertFromScrollbarToContainingView(const Scrollbar*, const IntRect &) const override;
77 IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const IntRect &) const override; 74 IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const IntRect &) const override;
78 IntPoint convertFromScrollbarToContainingView(const Scrollbar*, const IntPoi nt&) const override; 75 IntPoint convertFromScrollbarToContainingView(const Scrollbar*, const IntPoi nt&) const override;
79 IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, const IntPoi nt&) const override; 76 IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, const IntPoi nt&) const override;
80 int scrollSize(ScrollbarOrientation) const override; 77 int scrollSize(ScrollbarOrientation) const override;
81 void setScrollOffset(const IntPoint&) override; 78 void setScrollOffset(const IntPoint&) override;
82 IntPoint scrollPosition() const override; 79 IntPoint scrollPosition() const override;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 IntPoint m_cachedOverlayScrollbarOffset; 191 IntPoint m_cachedOverlayScrollbarOffset;
195 192
196 // For areas with overflow, we have a pair of scrollbars. 193 // For areas with overflow, we have a pair of scrollbars.
197 RefPtr<Scrollbar> m_hBar; 194 RefPtr<Scrollbar> m_hBar;
198 RefPtr<Scrollbar> m_vBar; 195 RefPtr<Scrollbar> m_vBar;
199 }; 196 };
200 197
201 } // namespace blink 198 } // namespace blink
202 199
203 #endif // RenderLayerScrollableArea_h 200 #endif // RenderLayerScrollableArea_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698