OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/MathExtras.h" | 38 #include "wtf/MathExtras.h" |
39 #include "wtf/Noncopyable.h" | 39 #include "wtf/Noncopyable.h" |
40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class GraphicsLayer; | 44 class GraphicsLayer; |
45 class HostWindow; | 45 class HostWindow; |
46 class LayoutBox; | 46 class LayoutBox; |
47 class LayoutObject; | 47 class LayoutObject; |
| 48 class PaintLayer; |
48 class ProgrammaticScrollAnimator; | 49 class ProgrammaticScrollAnimator; |
49 struct ScrollAlignment; | 50 struct ScrollAlignment; |
50 class ScrollAnchor; | 51 class ScrollAnchor; |
51 class ScrollAnimatorBase; | 52 class ScrollAnimatorBase; |
52 class CompositorAnimationTimeline; | 53 class CompositorAnimationTimeline; |
53 | 54 |
54 enum IncludeScrollbarsInRect { | 55 enum IncludeScrollbarsInRect { |
55 ExcludeScrollbars, | 56 ExcludeScrollbars, |
56 IncludeScrollbars, | 57 IncludeScrollbars, |
57 }; | 58 }; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 194 } |
194 virtual IntPoint convertFromContainingWidgetToScrollbar( | 195 virtual IntPoint convertFromContainingWidgetToScrollbar( |
195 const Scrollbar& scrollbar, | 196 const Scrollbar& scrollbar, |
196 const IntPoint& parentPoint) const { | 197 const IntPoint& parentPoint) const { |
197 return scrollbar.Widget::convertFromContainingWidget(parentPoint); | 198 return scrollbar.Widget::convertFromContainingWidget(parentPoint); |
198 } | 199 } |
199 | 200 |
200 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } | 201 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } |
201 virtual Scrollbar* verticalScrollbar() const { return nullptr; } | 202 virtual Scrollbar* verticalScrollbar() const { return nullptr; } |
202 | 203 |
| 204 virtual PaintLayer* layer() const { return nullptr; } |
| 205 |
203 // scrollPosition is the location of the top/left of the scroll viewport in | 206 // scrollPosition is the location of the top/left of the scroll viewport in |
204 // the coordinate system defined by the top/left of the overflow rect. | 207 // the coordinate system defined by the top/left of the overflow rect. |
205 // scrollOffset is the offset of the scroll viewport from its position when | 208 // scrollOffset is the offset of the scroll viewport from its position when |
206 // scrolled all the way to the beginning of its content's flow. | 209 // scrolled all the way to the beginning of its content's flow. |
207 // For a more detailed explanation of scrollPosition, scrollOffset, and | 210 // For a more detailed explanation of scrollPosition, scrollOffset, and |
208 // scrollOrigin, see core/layout/README.md. | 211 // scrollOrigin, see core/layout/README.md. |
209 FloatPoint scrollPosition() const { | 212 FloatPoint scrollPosition() const { |
210 return FloatPoint(scrollOrigin()) + scrollOffset(); | 213 return FloatPoint(scrollOrigin()) + scrollOffset(); |
211 } | 214 } |
212 virtual IntSize scrollOffsetInt() const = 0; | 215 virtual IntSize scrollOffsetInt() const = 0; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // vertical-lr / ltr NO NO | 440 // vertical-lr / ltr NO NO |
438 // vertical-lr / rtl NO YES | 441 // vertical-lr / rtl NO YES |
439 // vertical-rl / ltr YES NO | 442 // vertical-rl / ltr YES NO |
440 // vertical-rl / rtl YES YES | 443 // vertical-rl / rtl YES YES |
441 IntPoint m_scrollOrigin; | 444 IntPoint m_scrollOrigin; |
442 }; | 445 }; |
443 | 446 |
444 } // namespace blink | 447 } // namespace blink |
445 | 448 |
446 #endif // ScrollableArea_h | 449 #endif // ScrollableArea_h |
OLD | NEW |