| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } | 84 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } |
| 85 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } | 85 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } |
| 86 | 86 |
| 87 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } | 87 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } |
| 88 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } | 88 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } |
| 89 | 89 |
| 90 bool inLiveResize() const { return m_inLiveResize; } | 90 bool inLiveResize() const { return m_inLiveResize; } |
| 91 void willStartLiveResize(); | 91 void willStartLiveResize(); |
| 92 void willEndLiveResize(); | 92 void willEndLiveResize(); |
| 93 | 93 |
| 94 void contentAreaWillPaint() const; | |
| 95 void mouseEnteredContentArea() const; | 94 void mouseEnteredContentArea() const; |
| 96 void mouseExitedContentArea() const; | 95 void mouseExitedContentArea() const; |
| 97 void mouseMovedInContentArea() const; | 96 void mouseMovedInContentArea() const; |
| 98 void mouseEnteredScrollbar(Scrollbar*) const; | 97 void mouseEnteredScrollbar(Scrollbar*) const; |
| 99 void mouseExitedScrollbar(Scrollbar*) const; | 98 void mouseExitedScrollbar(Scrollbar*) const; |
| 100 void contentAreaDidShow() const; | 99 void contentAreaDidShow() const; |
| 101 void contentAreaDidHide() const; | 100 void contentAreaDidHide() const; |
| 102 | 101 |
| 103 void finishCurrentScrollAnimations() const; | 102 void finishCurrentScrollAnimations() const; |
| 104 | 103 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 165 |
| 167 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba
rs) const; | 166 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba
rs) const; |
| 168 virtual int visibleHeight() const = 0; | 167 virtual int visibleHeight() const = 0; |
| 169 virtual int visibleWidth() const = 0; | 168 virtual int visibleWidth() const = 0; |
| 170 virtual IntSize contentsSize() const = 0; | 169 virtual IntSize contentsSize() const = 0; |
| 171 virtual IntSize overhangAmount() const { return IntSize(); } | 170 virtual IntSize overhangAmount() const { return IntSize(); } |
| 172 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } | 171 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } |
| 173 | 172 |
| 174 virtual bool shouldSuspendScrollAnimations() const { return true; } | 173 virtual bool shouldSuspendScrollAnimations() const { return true; } |
| 175 | 174 |
| 176 virtual bool scrollbarsCanBeActive() const = 0; | |
| 177 | |
| 178 // 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. |
| 179 virtual IntRect scrollableAreaBoundingBox() const = 0; | 176 virtual IntRect scrollableAreaBoundingBox() const = 0; |
| 180 | 177 |
| 181 virtual bool scrollAnimatorEnabled() const { return false; } | 178 virtual bool scrollAnimatorEnabled() const { return false; } |
| 182 | 179 |
| 183 // NOTE: Only called from Internals for testing. | 180 // NOTE: Only called from Internals for testing. |
| 184 void setScrollOffsetFromInternals(const IntPoint&); | 181 void setScrollOffsetFromInternals(const IntPoint&); |
| 185 | 182 |
| 186 IntPoint clampScrollPosition(const IntPoint&) const; | 183 IntPoint clampScrollPosition(const IntPoint&) const; |
| 187 | 184 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // vertical-lr / ltr NO NO | 288 // vertical-lr / ltr NO NO |
| 292 // vertical-lr / rtl NO YES | 289 // vertical-lr / rtl NO YES |
| 293 // vertical-rl / ltr YES NO | 290 // vertical-rl / ltr YES NO |
| 294 // vertical-rl / rtl YES YES | 291 // vertical-rl / rtl YES YES |
| 295 IntPoint m_scrollOrigin; | 292 IntPoint m_scrollOrigin; |
| 296 }; | 293 }; |
| 297 | 294 |
| 298 } // namespace blink | 295 } // namespace blink |
| 299 | 296 |
| 300 #endif // ScrollableArea_h | 297 #endif // ScrollableArea_h |
| OLD | NEW |