| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void scrollToOffsetWithoutAnimation(const FloatPoint&); | 63 void scrollToOffsetWithoutAnimation(const FloatPoint&); |
| 64 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); | 64 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); |
| 65 | 65 |
| 66 // Should be called when the scroll position changes externally, for example
if the scroll layer position | 66 // Should be called when the scroll position changes externally, for example
if the scroll layer position |
| 67 // is updated on the scrolling thread and we need to notify the main thread. | 67 // is updated on the scrolling thread and we need to notify the main thread. |
| 68 void notifyScrollPositionChanged(const IntPoint&); | 68 void notifyScrollPositionChanged(const IntPoint&); |
| 69 | 69 |
| 70 static bool scrollBehaviorFromString(const String&, ScrollBehavior&); | 70 static bool scrollBehaviorFromString(const String&, ScrollBehavior&); |
| 71 | 71 |
| 72 bool handleWheelEvent(const PlatformWheelEvent&); | 72 bool handleWheelEvent(const PlatformWheelEvent&); |
| 73 bool handleWheelEvent(const PlatformWheelEvent&, bool canRubberbandLeft, boo
l canRubberbandRight); |
| 73 | 74 |
| 74 // Functions for controlling if you can scroll past the end of the document. | 75 // Functions for controlling if you can scroll past the end of the document. |
| 75 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling
ToContentEdge; } | 76 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling
ToContentEdge; } |
| 76 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd
ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; } | 77 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd
ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; } |
| 77 | 78 |
| 78 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } | 79 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert
icalScrollElasticity = scrollElasticity; } |
| 79 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } | 80 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol
lElasticity>(m_verticalScrollElasticity); } |
| 80 | 81 |
| 81 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } | 82 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho
rizontalScrollElasticity = scrollElasticity; } |
| 82 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } | 83 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr
ollElasticity>(m_horizontalScrollElasticity); } |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // vertical-lr / ltr NO NO | 280 // vertical-lr / ltr NO NO |
| 280 // vertical-lr / rtl NO YES | 281 // vertical-lr / rtl NO YES |
| 281 // vertical-rl / ltr YES NO | 282 // vertical-rl / ltr YES NO |
| 282 // vertical-rl / rtl YES YES | 283 // vertical-rl / rtl YES YES |
| 283 IntPoint m_scrollOrigin; | 284 IntPoint m_scrollOrigin; |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace WebCore | 287 } // namespace WebCore |
| 287 | 288 |
| 288 #endif // ScrollableArea_h | 289 #endif // ScrollableArea_h |
| OLD | NEW |