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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class FloatPoint; | 37 class FloatPoint; |
38 class GraphicsContext; | 38 class GraphicsContext; |
39 class GraphicsLayer; | 39 class GraphicsLayer; |
40 class PlatformGestureEvent; | 40 class PlatformGestureEvent; |
41 class PlatformWheelEvent; | 41 class PlatformWheelEvent; |
42 class ScrollAnimator; | 42 class ScrollAnimator; |
43 | 43 |
| 44 enum ScrollBehavior { |
| 45 ScrollBehaviorAuto, |
| 46 ScrollBehaviorInstant, |
| 47 ScrollBehaviorSmooth, |
| 48 }; |
| 49 |
44 class PLATFORM_EXPORT ScrollableArea { | 50 class PLATFORM_EXPORT ScrollableArea { |
45 WTF_MAKE_NONCOPYABLE(ScrollableArea); | 51 WTF_MAKE_NONCOPYABLE(ScrollableArea); |
46 public: | 52 public: |
47 static int pixelsPerLineStep(); | 53 static int pixelsPerLineStep(); |
48 static float minFractionToStepWhenPaging(); | 54 static float minFractionToStepWhenPaging(); |
49 static int maxOverlapBetweenPages(); | 55 static int maxOverlapBetweenPages(); |
50 | 56 |
51 bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); | 57 bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); |
52 void scrollToOffsetWithoutAnimation(const FloatPoint&); | 58 void scrollToOffsetWithoutAnimation(const FloatPoint&); |
53 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); | 59 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // vertical-lr / ltr NO NO | 248 // vertical-lr / ltr NO NO |
243 // vertical-lr / rtl NO YES | 249 // vertical-lr / rtl NO YES |
244 // vertical-rl / ltr YES NO | 250 // vertical-rl / ltr YES NO |
245 // vertical-rl / rtl YES YES | 251 // vertical-rl / rtl YES YES |
246 IntPoint m_scrollOrigin; | 252 IntPoint m_scrollOrigin; |
247 }; | 253 }; |
248 | 254 |
249 } // namespace WebCore | 255 } // namespace WebCore |
250 | 256 |
251 #endif // ScrollableArea_h | 257 #endif // ScrollableArea_h |
OLD | NEW |