| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 virtual int visibleWidth() const = 0; | 168 virtual int visibleWidth() const = 0; |
| 169 virtual IntSize contentsSize() const = 0; | 169 virtual IntSize contentsSize() const = 0; |
| 170 virtual IntSize overhangAmount() const { return IntSize(); } | 170 virtual IntSize overhangAmount() const { return IntSize(); } |
| 171 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } | 171 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } |
| 172 | 172 |
| 173 virtual bool shouldSuspendScrollAnimations() const { return true; } | 173 virtual bool shouldSuspendScrollAnimations() const { return true; } |
| 174 | 174 |
| 175 // Returns the bounding box of this scrollable area, in the coordinate syste
m of the enclosing scroll view. | 175 // Returns the bounding box of this scrollable area, in the coordinate syste
m of the enclosing scroll view. |
| 176 virtual IntRect scrollableAreaBoundingBox() const = 0; | 176 virtual IntRect scrollableAreaBoundingBox() const = 0; |
| 177 | 177 |
| 178 virtual bool scrollAnimatorEnabled() const { return false; } | |
| 179 | |
| 180 // NOTE: Only called from Internals for testing. | 178 // NOTE: Only called from Internals for testing. |
| 181 void setScrollOffsetFromInternals(const IntPoint&); | 179 void setScrollOffsetFromInternals(const IntPoint&); |
| 182 | 180 |
| 183 IntPoint clampScrollPosition(const IntPoint&) const; | 181 IntPoint clampScrollPosition(const IntPoint&) const; |
| 184 | 182 |
| 185 // Let subclasses provide a way of asking for and servicing scroll | 183 // Let subclasses provide a way of asking for and servicing scroll |
| 186 // animations. | 184 // animations. |
| 187 bool scheduleAnimation(); | 185 bool scheduleAnimation(); |
| 188 void serviceScrollAnimations(double monotonicTime); | 186 void serviceScrollAnimations(double monotonicTime); |
| 189 | 187 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // vertical-lr / ltr NO NO | 286 // vertical-lr / ltr NO NO |
| 289 // vertical-lr / rtl NO YES | 287 // vertical-lr / rtl NO YES |
| 290 // vertical-rl / ltr YES NO | 288 // vertical-rl / ltr YES NO |
| 291 // vertical-rl / rtl YES YES | 289 // vertical-rl / rtl YES YES |
| 292 IntPoint m_scrollOrigin; | 290 IntPoint m_scrollOrigin; |
| 293 }; | 291 }; |
| 294 | 292 |
| 295 } // namespace blink | 293 } // namespace blink |
| 296 | 294 |
| 297 #endif // ScrollableArea_h | 295 #endif // ScrollableArea_h |
| OLD | NEW |