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

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

Issue 12279017: Revert 140571 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « Source/WebCore/platform/ScrollView.cpp ('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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 virtual bool scrollbarsCanBeActive() const = 0; 152 virtual bool scrollbarsCanBeActive() const = 0;
153 153
154 // Note that this only returns scrollable areas that can actually be scrolle d. 154 // Note that this only returns scrollable areas that can actually be scrolle d.
155 virtual ScrollableArea* enclosingScrollableArea() const = 0; 155 virtual ScrollableArea* enclosingScrollableArea() const = 0;
156 156
157 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view. 157 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view.
158 virtual IntRect scrollableAreaBoundingBox() const = 0; 158 virtual IntRect scrollableAreaBoundingBox() const = 0;
159 159
160 virtual bool shouldRubberBandInDirection(ScrollDirection) const { return tru e; } 160 virtual bool shouldRubberBandInDirection(ScrollDirection) const { return tru e; }
161 virtual bool isRubberBandInProgress() const { return false; }
162 161
163 virtual bool scrollAnimatorEnabled() const { return false; } 162 virtual bool scrollAnimatorEnabled() const { return false; }
164 163
165 // NOTE: Only called from Internals for testing. 164 // NOTE: Only called from Internals for testing.
166 void setScrollOffsetFromInternals(const IntPoint&); 165 void setScrollOffsetFromInternals(const IntPoint&);
167 166
168 // Let subclasses provide a way of asking for and servicing scroll 167 // Let subclasses provide a way of asking for and servicing scroll
169 // animations. 168 // animations.
170 virtual bool scheduleAnimation() { return false; } 169 virtual bool scheduleAnimation() { return false; }
171 void serviceScrollAnimations(); 170 void serviceScrollAnimations();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // vertical-lr / ltr NO NO 231 // vertical-lr / ltr NO NO
233 // vertical-lr / rtl NO YES 232 // vertical-lr / rtl NO YES
234 // vertical-rl / ltr YES NO 233 // vertical-rl / ltr YES NO
235 // vertical-rl / rtl YES YES 234 // vertical-rl / rtl YES YES
236 IntPoint m_scrollOrigin; 235 IntPoint m_scrollOrigin;
237 }; 236 };
238 237
239 } // namespace WebCore 238 } // namespace WebCore
240 239
241 #endif // ScrollableArea_h 240 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/ScrollView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698