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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(WebCompositorAnimationTimeline*); |
249 | 249 |
250 void cancelScrollAnimation(); | 250 void cancelScrollAnimation(); |
| 251 void clearMainThreadScrollingReasons(bool clear); |
251 virtual void cancelProgrammaticScrollAnimation(); | 252 virtual void cancelProgrammaticScrollAnimation(); |
252 | 253 |
253 virtual ~ScrollableArea(); | 254 virtual ~ScrollableArea(); |
254 | 255 |
255 // Called when any of horizontal scrollbar, vertical scrollbar and scroll co
rner is setNeedsPaintInvalidation. | 256 // Called when any of horizontal scrollbar, vertical scrollbar and scroll co
rner is setNeedsPaintInvalidation. |
256 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0; | 257 virtual void scrollControlWasSetNeedsPaintInvalidation() = 0; |
257 | 258 |
258 // Returns the default scroll style this area should scroll with when not | 259 // Returns the default scroll style this area should scroll with when not |
259 // explicitly specified. E.g. The scrolling behavior of an element can be | 260 // explicitly specified. E.g. The scrolling behavior of an element can be |
260 // specified in CSS. | 261 // specified in CSS. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // vertical-lr / ltr NO NO | 359 // vertical-lr / ltr NO NO |
359 // vertical-lr / rtl NO YES | 360 // vertical-lr / rtl NO YES |
360 // vertical-rl / ltr YES NO | 361 // vertical-rl / ltr YES NO |
361 // vertical-rl / rtl YES YES | 362 // vertical-rl / rtl YES YES |
362 IntPoint m_scrollOrigin; | 363 IntPoint m_scrollOrigin; |
363 }; | 364 }; |
364 | 365 |
365 } // namespace blink | 366 } // namespace blink |
366 | 367 |
367 #endif // ScrollableArea_h | 368 #endif // ScrollableArea_h |
OLD | NEW |