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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 class FloatPoint; | 34 class FloatPoint; |
35 class GraphicsContext; | 35 class GraphicsContext; |
36 class GraphicsLayer; | 36 class GraphicsLayer; |
37 class PlatformGestureEvent; | 37 class PlatformGestureEvent; |
38 class PlatformWheelEvent; | 38 class PlatformWheelEvent; |
39 class ScrollAnimator; | 39 class ScrollAnimator; |
40 | 40 |
41 class ScrollableArea { | 41 class ScrollableArea { |
42 public: | 42 public: |
| 43 |
| 44 // Allow the ScrollableArea to be scrolled when we don't have scrollbars (i.
e. for an input text field) |
| 45 bool touchScroll(ScrollDirection, ScrollGranularity, float multiplier = 1); |
43 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1); | 46 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1); |
44 void scrollToOffsetWithoutAnimation(const FloatPoint&); | 47 void scrollToOffsetWithoutAnimation(const FloatPoint&); |
45 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); | 48 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); |
46 | 49 |
47 // Should be called when the scroll position changes externally, for example
if the scroll layer position | 50 // Should be called when the scroll position changes externally, for example
if the scroll layer position |
48 // is updated on the scrolling thread and we need to notify the main thread. | 51 // is updated on the scrolling thread and we need to notify the main thread. |
49 void notifyScrollPositionChanged(const IntPoint&); | 52 void notifyScrollPositionChanged(const IntPoint&); |
50 | 53 |
51 // Allows subclasses to handle scroll position updates themselves. If this m
ember function | 54 // Allows subclasses to handle scroll position updates themselves. If this m
ember function |
52 // returns true, the scrollable area won't actually update the scroll positi
on and instead | 55 // returns true, the scrollable area won't actually update the scroll positi
on and instead |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // vertical-lr / ltr NO NO | 238 // vertical-lr / ltr NO NO |
236 // vertical-lr / rtl NO YES | 239 // vertical-lr / rtl NO YES |
237 // vertical-rl / ltr YES NO | 240 // vertical-rl / ltr YES NO |
238 // vertical-rl / rtl YES YES | 241 // vertical-rl / rtl YES YES |
239 IntPoint m_scrollOrigin; | 242 IntPoint m_scrollOrigin; |
240 }; | 243 }; |
241 | 244 |
242 } // namespace WebCore | 245 } // namespace WebCore |
243 | 246 |
244 #endif // ScrollableArea_h | 247 #endif // ScrollableArea_h |
OLD | NEW |