| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 IntPoint clampScrollPosition(const IntPoint&) const; | 198 IntPoint clampScrollPosition(const IntPoint&) const; |
| 199 | 199 |
| 200 // Let subclasses provide a way of asking for and servicing scroll | 200 // Let subclasses provide a way of asking for and servicing scroll |
| 201 // animations. | 201 // animations. |
| 202 bool scheduleAnimation(); | 202 bool scheduleAnimation(); |
| 203 void serviceScrollAnimations(double monotonicTime); | 203 void serviceScrollAnimations(double monotonicTime); |
| 204 void updateCompositorScrollAnimations(); | 204 void updateCompositorScrollAnimations(); |
| 205 virtual void registerForAnimation() { } | 205 virtual void registerForAnimation() { } |
| 206 virtual void deregisterForAnimation() { } | 206 virtual void deregisterForAnimation() { } |
| 207 | 207 |
| 208 void notifyCompositorAnimationFinished(int groupId); | |
| 209 | |
| 210 virtual bool usesCompositedScrolling() const { return false; } | 208 virtual bool usesCompositedScrolling() const { return false; } |
| 211 | 209 |
| 212 // Returns true if the GraphicsLayer tree needs to be rebuilt. | 210 // Returns true if the GraphicsLayer tree needs to be rebuilt. |
| 213 virtual bool updateAfterCompositingChange() { return false; } | 211 virtual bool updateAfterCompositingChange() { return false; } |
| 214 | 212 |
| 215 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; | 213 virtual bool userInputScrollable(ScrollbarOrientation) const = 0; |
| 216 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; | 214 virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0; |
| 217 | 215 |
| 218 // Convenience functions | 216 // Convenience functions |
| 219 int scrollPosition(ScrollbarOrientation orientation) { return orientation ==
HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); } | 217 int scrollPosition(ScrollbarOrientation orientation) { return orientation ==
HorizontalScrollbar ? scrollPosition().x() : scrollPosition().y(); } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 // vertical-lr / ltr NO NO | 314 // vertical-lr / ltr NO NO |
| 317 // vertical-lr / rtl NO YES | 315 // vertical-lr / rtl NO YES |
| 318 // vertical-rl / ltr YES NO | 316 // vertical-rl / ltr YES NO |
| 319 // vertical-rl / rtl YES YES | 317 // vertical-rl / rtl YES YES |
| 320 IntPoint m_scrollOrigin; | 318 IntPoint m_scrollOrigin; |
| 321 }; | 319 }; |
| 322 | 320 |
| 323 } // namespace blink | 321 } // namespace blink |
| 324 | 322 |
| 325 #endif // ScrollableArea_h | 323 #endif // ScrollableArea_h |
| OLD | NEW |