OLD | NEW |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 enum ResizerHitTestType { ResizerForPointer, ResizerForTouch }; | 59 enum ResizerHitTestType { ResizerForPointer, ResizerForTouch }; |
60 | 60 |
61 class ComputedStyle; | 61 class ComputedStyle; |
62 class HitTestResult; | 62 class HitTestResult; |
63 class LayoutBox; | 63 class LayoutBox; |
64 class LayoutScrollbarPart; | 64 class LayoutScrollbarPart; |
65 class PaintLayer; | 65 class PaintLayer; |
66 class PlatformEvent; | |
67 class StickyPositionScrollingConstraints; | 66 class StickyPositionScrollingConstraints; |
68 class SubtreeLayoutScope; | 67 class SubtreeLayoutScope; |
69 | 68 |
70 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> | 69 typedef WTF::HashMap<PaintLayer*, StickyPositionScrollingConstraints> |
71 StickyConstraintsMap; | 70 StickyConstraintsMap; |
72 | 71 |
73 struct CORE_EXPORT PaintLayerScrollableAreaRareData { | 72 struct CORE_EXPORT PaintLayerScrollableAreaRareData { |
74 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); | 73 WTF_MAKE_NONCOPYABLE(PaintLayerScrollableAreaRareData); |
75 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); | 74 USING_FAST_MALLOC(PaintLayerScrollableAreaRareData); |
76 | 75 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 330 |
332 bool hasScrollbar() const { | 331 bool hasScrollbar() const { |
333 return hasHorizontalScrollbar() || hasVerticalScrollbar(); | 332 return hasHorizontalScrollbar() || hasVerticalScrollbar(); |
334 } | 333 } |
335 bool hasOverflowControls() const { | 334 bool hasOverflowControls() const { |
336 return hasScrollbar() || scrollCorner() || resizer(); | 335 return hasScrollbar() || scrollCorner() || resizer(); |
337 } | 336 } |
338 | 337 |
339 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } | 338 LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; } |
340 | 339 |
341 void resize(const PlatformEvent&, const LayoutSize&); | 340 void resize(const IntPoint& pos, const LayoutSize& oldOffset); |
342 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; | 341 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; |
343 | 342 |
344 bool inResizeMode() const { return m_inResizeMode; } | 343 bool inResizeMode() const { return m_inResizeMode; } |
345 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } | 344 void setInResizeMode(bool inResizeMode) { m_inResizeMode = inResizeMode; } |
346 | 345 |
347 IntRect touchResizerCornerRect(const IntRect& bounds) const { | 346 IntRect touchResizerCornerRect(const IntRect& bounds) const { |
348 return resizerCornerRect(bounds, ResizerForTouch); | 347 return resizerCornerRect(bounds, ResizerForTouch); |
349 } | 348 } |
350 | 349 |
351 LayoutUnit scrollWidth() const; | 350 LayoutUnit scrollWidth() const; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 585 |
587 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 586 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
588 ScrollableArea, | 587 ScrollableArea, |
589 scrollableArea, | 588 scrollableArea, |
590 scrollableArea->isPaintLayerScrollableArea(), | 589 scrollableArea->isPaintLayerScrollableArea(), |
591 scrollableArea.isPaintLayerScrollableArea()); | 590 scrollableArea.isPaintLayerScrollableArea()); |
592 | 591 |
593 } // namespace blink | 592 } // namespace blink |
594 | 593 |
595 #endif // LayerScrollableArea_h | 594 #endif // LayerScrollableArea_h |
OLD | NEW |