| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 virtual bool scrollAnimatorEnabled() const { return false; } | 204 virtual bool scrollAnimatorEnabled() const { return false; } |
| 205 | 205 |
| 206 // NOTE: Only called from Internals for testing. | 206 // NOTE: Only called from Internals for testing. |
| 207 void setScrollOffsetFromInternals(const IntPoint&); | 207 void setScrollOffsetFromInternals(const IntPoint&); |
| 208 | 208 |
| 209 IntPoint clampScrollPosition(const IntPoint&) const; | 209 IntPoint clampScrollPosition(const IntPoint&) const; |
| 210 DoublePoint clampScrollPosition(const DoublePoint&) const; | 210 DoublePoint clampScrollPosition(const DoublePoint&) const; |
| 211 | 211 |
| 212 // Let subclasses provide a way of asking for and servicing scroll | 212 // Let subclasses provide a way of asking for and servicing scroll |
| 213 // animations. | 213 // animations. |
| 214 bool scheduleAnimation(); | 214 virtual bool scheduleAnimation(); |
| 215 virtual void serviceScrollAnimations(double monotonicTime); | 215 virtual void serviceScrollAnimations(double monotonicTime); |
| 216 virtual void updateCompositorScrollAnimations(); | 216 virtual void updateCompositorScrollAnimations(); |
| 217 virtual void registerForAnimation() { } | 217 virtual void registerForAnimation() { } |
| 218 virtual void deregisterForAnimation() { } | 218 virtual void deregisterForAnimation() { } |
| 219 | 219 |
| 220 void notifyCompositorAnimationFinished(int groupId); | 220 void notifyCompositorAnimationFinished(int groupId); |
| 221 | 221 |
| 222 virtual bool usesCompositedScrolling() const { return false; } | 222 virtual bool usesCompositedScrolling() const { return false; } |
| 223 | 223 |
| 224 // Returns true if the GraphicsLayer tree needs to be rebuilt. | 224 // Returns true if the GraphicsLayer tree needs to be rebuilt. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // vertical-lr / ltr NO NO | 352 // vertical-lr / ltr NO NO |
| 353 // vertical-lr / rtl NO YES | 353 // vertical-lr / rtl NO YES |
| 354 // vertical-rl / ltr YES NO | 354 // vertical-rl / ltr YES NO |
| 355 // vertical-rl / rtl YES YES | 355 // vertical-rl / rtl YES YES |
| 356 IntPoint m_scrollOrigin; | 356 IntPoint m_scrollOrigin; |
| 357 }; | 357 }; |
| 358 | 358 |
| 359 } // namespace blink | 359 } // namespace blink |
| 360 | 360 |
| 361 #endif // ScrollableArea_h | 361 #endif // ScrollableArea_h |
| OLD | NEW |