| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 virtual int visibleHeight() const { return visibleContentRect().height(); } | 239 virtual int visibleHeight() const { return visibleContentRect().height(); } |
| 240 virtual int visibleWidth() const { return visibleContentRect().width(); } | 240 virtual int visibleWidth() const { return visibleContentRect().width(); } |
| 241 virtual IntSize contentsSize() const = 0; | 241 virtual IntSize contentsSize() const = 0; |
| 242 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } | 242 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } |
| 243 | 243 |
| 244 virtual bool shouldSuspendScrollAnimations() const { return true; } | 244 virtual bool shouldSuspendScrollAnimations() const { return true; } |
| 245 virtual void scrollbarStyleChanged() {} | 245 virtual void scrollbarStyleChanged() {} |
| 246 virtual bool scrollbarsCanBeActive() const = 0; | 246 virtual bool scrollbarsCanBeActive() const = 0; |
| 247 | 247 |
| 248 // Returns the bounding box of this scrollable area, in the coordinate system | 248 // Returns the bounding box of this scrollable area, in the coordinate system |
| 249 // of the enclosing scroll view. | 249 // of the top-level FrameView. |
| 250 virtual IntRect scrollableAreaBoundingBox() const = 0; | 250 virtual IntRect scrollableAreaBoundingBox() const = 0; |
| 251 | 251 |
| 252 virtual bool scrollAnimatorEnabled() const { return false; } | 252 virtual bool scrollAnimatorEnabled() const { return false; } |
| 253 | 253 |
| 254 // NOTE: Only called from Internals for testing. | 254 // NOTE: Only called from Internals for testing. |
| 255 void updateScrollOffsetFromInternals(const IntSize&); | 255 void updateScrollOffsetFromInternals(const IntSize&); |
| 256 | 256 |
| 257 IntSize clampScrollOffset(const IntSize&) const; | 257 IntSize clampScrollOffset(const IntSize&) const; |
| 258 ScrollOffset clampScrollOffset(const ScrollOffset&) const; | 258 ScrollOffset clampScrollOffset(const ScrollOffset&) const; |
| 259 | 259 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 // vertical-lr / ltr NO NO | 446 // vertical-lr / ltr NO NO |
| 447 // vertical-lr / rtl NO YES | 447 // vertical-lr / rtl NO YES |
| 448 // vertical-rl / ltr YES NO | 448 // vertical-rl / ltr YES NO |
| 449 // vertical-rl / rtl YES YES | 449 // vertical-rl / rtl YES YES |
| 450 IntPoint m_scrollOrigin; | 450 IntPoint m_scrollOrigin; |
| 451 }; | 451 }; |
| 452 | 452 |
| 453 } // namespace blink | 453 } // namespace blink |
| 454 | 454 |
| 455 #endif // ScrollableArea_h | 455 #endif // ScrollableArea_h |
| OLD | NEW |