Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: Source/platform/scroll/ScrollableArea.h

Issue 140253004: Implement 'scroll-behavior' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698