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