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 23 matching lines...) Expand all Loading... |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "platform/scroll/ScrollAnimatorBase.h" | 35 #include "platform/scroll/ScrollAnimatorBase.h" |
36 #include "platform/scroll/ScrollTypes.h" | 36 #include "platform/scroll/ScrollTypes.h" |
37 #include "platform/scroll/Scrollbar.h" | 37 #include "platform/scroll/Scrollbar.h" |
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 CompositorAnimationHost; |
| 45 class CompositorAnimationTimeline; |
44 class GraphicsLayer; | 46 class GraphicsLayer; |
45 class HostWindow; | 47 class HostWindow; |
46 class LayoutBox; | 48 class LayoutBox; |
47 class LayoutObject; | 49 class LayoutObject; |
48 class PaintLayer; | 50 class PaintLayer; |
49 class ProgrammaticScrollAnimator; | 51 class ProgrammaticScrollAnimator; |
50 struct ScrollAlignment; | 52 struct ScrollAlignment; |
51 class ScrollAnchor; | 53 class ScrollAnchor; |
52 class ScrollAnimatorBase; | 54 class ScrollAnimatorBase; |
53 class CompositorAnimationTimeline; | 55 class CompositorAnimationTimeline; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // yet. | 145 // yet. |
144 ScrollAnimatorBase* existingScrollAnimator() const { | 146 ScrollAnimatorBase* existingScrollAnimator() const { |
145 return m_scrollAnimator; | 147 return m_scrollAnimator; |
146 } | 148 } |
147 | 149 |
148 ProgrammaticScrollAnimator& programmaticScrollAnimator() const; | 150 ProgrammaticScrollAnimator& programmaticScrollAnimator() const; |
149 ProgrammaticScrollAnimator* existingProgrammaticScrollAnimator() const { | 151 ProgrammaticScrollAnimator* existingProgrammaticScrollAnimator() const { |
150 return m_programmaticScrollAnimator; | 152 return m_programmaticScrollAnimator; |
151 } | 153 } |
152 | 154 |
| 155 virtual CompositorAnimationHost* compositorAnimationHost() const { |
| 156 return nullptr; |
| 157 } |
153 virtual CompositorAnimationTimeline* compositorAnimationTimeline() const { | 158 virtual CompositorAnimationTimeline* compositorAnimationTimeline() const { |
154 return nullptr; | 159 return nullptr; |
155 } | 160 } |
156 | 161 |
157 // See Source/core/layout/README.md for an explanation of scroll origin. | 162 // See Source/core/layout/README.md for an explanation of scroll origin. |
158 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } | 163 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } |
159 bool scrollOriginChanged() const { return m_scrollOriginChanged; } | 164 bool scrollOriginChanged() const { return m_scrollOriginChanged; } |
160 | 165 |
161 // This is used to determine whether the incoming fractional scroll offset | 166 // This is used to determine whether the incoming fractional scroll offset |
162 // should be truncated to integer. Current rule is that if | 167 // should be truncated to integer. Current rule is that if |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 // vertical-lr / ltr NO NO | 445 // vertical-lr / ltr NO NO |
441 // vertical-lr / rtl NO YES | 446 // vertical-lr / rtl NO YES |
442 // vertical-rl / ltr YES NO | 447 // vertical-rl / ltr YES NO |
443 // vertical-rl / rtl YES YES | 448 // vertical-rl / rtl YES YES |
444 IntPoint m_scrollOrigin; | 449 IntPoint m_scrollOrigin; |
445 }; | 450 }; |
446 | 451 |
447 } // namespace blink | 452 } // namespace blink |
448 | 453 |
449 #endif // ScrollableArea_h | 454 #endif // ScrollableArea_h |
OLD | NEW |