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 29 matching lines...) Expand all Loading... |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class DoubleRect; | 42 class DoubleRect; |
43 class FloatPoint; | 43 class FloatPoint; |
44 class GraphicsLayer; | 44 class GraphicsLayer; |
45 class HostWindow; | 45 class HostWindow; |
46 class PlatformWheelEvent; | 46 class PlatformWheelEvent; |
47 class ProgrammaticScrollAnimator; | 47 class ProgrammaticScrollAnimator; |
48 struct ScrollAlignment; | 48 struct ScrollAlignment; |
49 class ScrollAnimatorBase; | 49 class ScrollAnimatorBase; |
50 class WebCompositorAnimationTimeline; | 50 class CompositorAnimationTimeline; |
51 class Widget; | 51 class Widget; |
52 | 52 |
53 enum ScrollBehavior { | 53 enum ScrollBehavior { |
54 ScrollBehaviorAuto, | 54 ScrollBehaviorAuto, |
55 ScrollBehaviorInstant, | 55 ScrollBehaviorInstant, |
56 ScrollBehaviorSmooth, | 56 ScrollBehaviorSmooth, |
57 }; | 57 }; |
58 | 58 |
59 enum IncludeScrollbarsInRect { | 59 enum IncludeScrollbarsInRect { |
60 ExcludeScrollbars, | 60 ExcludeScrollbars, |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 virtual GraphicsLayer* layerForContainer() const; | 239 virtual GraphicsLayer* layerForContainer() const; |
240 virtual GraphicsLayer* layerForScrolling() const { return 0; } | 240 virtual GraphicsLayer* layerForScrolling() const { return 0; } |
241 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } | 241 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } |
242 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } | 242 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } |
243 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } | 243 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } |
244 bool hasLayerForHorizontalScrollbar() const; | 244 bool hasLayerForHorizontalScrollbar() const; |
245 bool hasLayerForVerticalScrollbar() const; | 245 bool hasLayerForVerticalScrollbar() const; |
246 bool hasLayerForScrollCorner() const; | 246 bool hasLayerForScrollCorner() const; |
247 | 247 |
248 void layerForScrollingDidChange(WebCompositorAnimationTimeline*); | 248 void layerForScrollingDidChange(CompositorAnimationTimeline*); |
249 | 249 |
250 void cancelScrollAnimation(); | 250 void cancelScrollAnimation(); |
251 virtual void cancelProgrammaticScrollAnimation(); | 251 virtual void cancelProgrammaticScrollAnimation(); |
252 | 252 |
253 virtual ~ScrollableArea(); | 253 virtual ~ScrollableArea(); |
254 | 254 |
255 // Called when any of horizontal scrollbar, vertical scrollbar and scroll co
rner is setNeedsPaintInvalidation. | 255 // Called when any of horizontal scrollbar, vertical scrollbar and scroll co
rner is setNeedsPaintInvalidation. |
256 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0; | 256 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0; |
257 | 257 |
258 // Returns the default scroll style this area should scroll with when not | 258 // Returns the default scroll style this area should scroll with when not |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // vertical-lr / ltr NO NO | 358 // vertical-lr / ltr NO NO |
359 // vertical-lr / rtl NO YES | 359 // vertical-lr / rtl NO YES |
360 // vertical-rl / ltr YES NO | 360 // vertical-rl / ltr YES NO |
361 // vertical-rl / rtl YES YES | 361 // vertical-rl / rtl YES YES |
362 IntPoint m_scrollOrigin; | 362 IntPoint m_scrollOrigin; |
363 }; | 363 }; |
364 | 364 |
365 } // namespace blink | 365 } // namespace blink |
366 | 366 |
367 #endif // ScrollableArea_h | 367 #endif // ScrollableArea_h |
OLD | NEW |