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

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

Issue 722353002: Add development Blink setting for impl-side rubber-banding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/platform/mac/ScrollAnimatorMac.mm ('k') | Source/web/WebSettingsImpl.h » ('j') | 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 virtual bool shouldSuspendScrollAnimations() const { return true; } 179 virtual bool shouldSuspendScrollAnimations() const { return true; }
180 virtual void scrollbarStyleChanged() { } 180 virtual void scrollbarStyleChanged() { }
181 181
182 virtual bool scrollbarsCanBeActive() const = 0; 182 virtual bool scrollbarsCanBeActive() const = 0;
183 183
184 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view. 184 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view.
185 virtual IntRect scrollableAreaBoundingBox() const = 0; 185 virtual IntRect scrollableAreaBoundingBox() const = 0;
186 186
187 virtual bool isRubberBandInProgress() const { return false; } 187 virtual bool isRubberBandInProgress() const { return false; }
188 virtual bool rubberBandingOnCompositorThread() const { return false; }
188 189
189 virtual bool scrollAnimatorEnabled() const { return false; } 190 virtual bool scrollAnimatorEnabled() const { return false; }
190 191
191 // NOTE: Only called from Internals for testing. 192 // NOTE: Only called from Internals for testing.
192 void setScrollOffsetFromInternals(const IntPoint&); 193 void setScrollOffsetFromInternals(const IntPoint&);
193 194
194 IntPoint clampScrollPosition(const IntPoint&) const; 195 IntPoint clampScrollPosition(const IntPoint&) const;
195 196
196 // Let subclasses provide a way of asking for and servicing scroll 197 // Let subclasses provide a way of asking for and servicing scroll
197 // animations. 198 // animations.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // vertical-lr / ltr NO NO 309 // vertical-lr / ltr NO NO
309 // vertical-lr / rtl NO YES 310 // vertical-lr / rtl NO YES
310 // vertical-rl / ltr YES NO 311 // vertical-rl / ltr YES NO
311 // vertical-rl / rtl YES YES 312 // vertical-rl / rtl YES YES
312 IntPoint m_scrollOrigin; 313 IntPoint m_scrollOrigin;
313 }; 314 };
314 315
315 } // namespace blink 316 } // namespace blink
316 317
317 #endif // ScrollableArea_h 318 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698