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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 /* 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 ~PaintLayerScrollableArea() override; 166 ~PaintLayerScrollableArea() override;
167 void dispose(); 167 void dispose();
168 168
169 bool hasHorizontalScrollbar() const { return horizontalScrollbar(); } 169 bool hasHorizontalScrollbar() const { return horizontalScrollbar(); }
170 bool hasVerticalScrollbar() const { return verticalScrollbar(); } 170 bool hasVerticalScrollbar() const { return verticalScrollbar(); }
171 171
172 Scrollbar* horizontalScrollbar() const override { return m_scrollbarManager. horizontalScrollbar(); } 172 Scrollbar* horizontalScrollbar() const override { return m_scrollbarManager. horizontalScrollbar(); }
173 Scrollbar* verticalScrollbar() const override { return m_scrollbarManager.ve rticalScrollbar(); } 173 Scrollbar* verticalScrollbar() const override { return m_scrollbarManager.ve rticalScrollbar(); }
174 174
175 HostWindow* hostWindow() const override; 175 HostWindow* getHostWindow() const override;
176 176
177 // For composited scrolling, we allocate an extra GraphicsLayer to hold 177 // For composited scrolling, we allocate an extra GraphicsLayer to hold
178 // onto the scrolling content. The layer can be shifted on the GPU and 178 // onto the scrolling content. The layer can be shifted on the GPU and
179 // composited at little cost. 179 // composited at little cost.
180 // Note that this is done in CompositedLayerMapping, this function being 180 // Note that this is done in CompositedLayerMapping, this function being
181 // only a helper. 181 // only a helper.
182 GraphicsLayer* layerForScrolling() const override; 182 GraphicsLayer* layerForScrolling() const override;
183 183
184 // GraphicsLayers for the scrolling components. 184 // GraphicsLayers for the scrolling components.
185 // 185 //
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 PaintLayer* layer() const; 325 PaintLayer* layer() const;
326 326
327 LayoutScrollbarPart* resizer() const override { return m_resizer; } 327 LayoutScrollbarPart* resizer() const override { return m_resizer; }
328 328
329 const IntPoint& cachedOverlayScrollbarOffset() { return m_cachedOverlayScrol lbarOffset; } 329 const IntPoint& cachedOverlayScrollbarOffset() { return m_cachedOverlayScrol lbarOffset; }
330 void setCachedOverlayScrollbarOffset(const IntPoint& offset) { m_cachedOverl ayScrollbarOffset = offset; } 330 void setCachedOverlayScrollbarOffset(const IntPoint& offset) { m_cachedOverl ayScrollbarOffset = offset; }
331 331
332 IntRect rectForHorizontalScrollbar(const IntRect& borderBoxRect) const; 332 IntRect rectForHorizontalScrollbar(const IntRect& borderBoxRect) const;
333 IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const; 333 IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const;
334 334
335 Widget* widget() override; 335 Widget* getWidget() override;
336 ScrollAnchor& scrollAnchor() { return m_scrollAnchor; } 336 ScrollAnchor& scrollAnchor() { return m_scrollAnchor; }
337 bool isPaintLayerScrollableArea() const override { return true; } 337 bool isPaintLayerScrollableArea() const override { return true; }
338 338
339 bool shouldRebuildHorizontalScrollbarLayer() const { return m_rebuildHorizon talScrollbarLayer; } 339 bool shouldRebuildHorizontalScrollbarLayer() const { return m_rebuildHorizon talScrollbarLayer; }
340 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS crollbarLayer; } 340 bool shouldRebuildVerticalScrollbarLayer() const { return m_rebuildVerticalS crollbarLayer; }
341 void resetRebuildScrollbarLayerFlags(); 341 void resetRebuildScrollbarLayerFlags();
342 342
343 DECLARE_VIRTUAL_TRACE(); 343 DECLARE_VIRTUAL_TRACE();
344 344
345 private: 345 private:
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 #endif 426 #endif
427 }; 427 };
428 428
429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 429 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
430 scrollableArea->isPaintLayerScrollableArea(), 430 scrollableArea->isPaintLayerScrollableArea(),
431 scrollableArea.isPaintLayerScrollableArea()); 431 scrollableArea.isPaintLayerScrollableArea());
432 432
433 } // namespace blink 433 } // namespace blink
434 434
435 #endif // LayerScrollableArea_h 435 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698