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

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

Issue 1907213002: Refactor OverlayScrollbarSizeRelevancy into OverlayScrollbarClipBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include -> Exclude Created 4 years, 8 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 IntRect touchResizerCornerRect(const IntRect& bounds) const 286 IntRect touchResizerCornerRect(const IntRect& bounds) const
287 { 287 {
288 return resizerCornerRect(bounds, ResizerForTouch); 288 return resizerCornerRect(bounds, ResizerForTouch);
289 } 289 }
290 290
291 LayoutUnit scrollWidth() const; 291 LayoutUnit scrollWidth() const;
292 LayoutUnit scrollHeight() const; 292 LayoutUnit scrollHeight() const;
293 int pixelSnappedScrollWidth() const; 293 int pixelSnappedScrollWidth() const;
294 int pixelSnappedScrollHeight() const; 294 int pixelSnappedScrollHeight() const;
295 295
296 int verticalScrollbarWidth(OverlayScrollbarSizeRelevancy = IgnoreOverlayScro llbarSize) const; 296 int verticalScrollbarWidth(OverlayScrollbarClipBehavior = IgnoreOverlayScrol lbarSize) const;
297 int horizontalScrollbarHeight(OverlayScrollbarSizeRelevancy = IgnoreOverlayS crollbarSize) const; 297 int horizontalScrollbarHeight(OverlayScrollbarClipBehavior = IgnoreOverlaySc rollbarSize) const;
298 298
299 DoubleSize adjustedScrollOffset() const { return DoubleSize(scrollXOffset(), scrollYOffset()); } 299 DoubleSize adjustedScrollOffset() const { return DoubleSize(scrollXOffset(), scrollYOffset()); }
300 300
301 void positionOverflowControls(); 301 void positionOverflowControls();
302 302
303 // isPointInResizeControl() is used for testing if a pointer/touch position is in the resize control 303 // isPointInResizeControl() is used for testing if a pointer/touch position is in the resize control
304 // area. 304 // area.
305 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const; 305 bool isPointInResizeControl(const IntPoint& absolutePoint, ResizerHitTestTyp e) const;
306 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint); 306 bool hitTestOverflowControls(HitTestResult&, const IntPoint& localPoint);
307 307
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 #endif 455 #endif
456 }; 456 };
457 457
458 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea, 458 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
459 scrollableArea->isPaintLayerScrollableArea(), 459 scrollableArea->isPaintLayerScrollableArea(),
460 scrollableArea.isPaintLayerScrollableArea()); 460 scrollableArea.isPaintLayerScrollableArea());
461 461
462 } // namespace blink 462 } // namespace blink
463 463
464 #endif // LayerScrollableArea_h 464 #endif // LayerScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698