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

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

Issue 24130008: Rename ENABLE(RUBBER_BANDING) to USE(RUBBER_BANDING). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/core/platform/ScrollView.cpp ('k') | Source/core/platform/ScrollbarTheme.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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } 195 void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
196 196
197 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; 197 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0;
198 virtual void invalidateScrollCornerRect(const IntRect&) = 0; 198 virtual void invalidateScrollCornerRect(const IntRect&) = 0;
199 199
200 friend class ScrollingCoordinator; 200 friend class ScrollingCoordinator;
201 virtual GraphicsLayer* layerForScrolling() const { return 0; } 201 virtual GraphicsLayer* layerForScrolling() const { return 0; }
202 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; } 202 virtual GraphicsLayer* layerForHorizontalScrollbar() const { return 0; }
203 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; } 203 virtual GraphicsLayer* layerForVerticalScrollbar() const { return 0; }
204 virtual GraphicsLayer* layerForScrollCorner() const { return 0; } 204 virtual GraphicsLayer* layerForScrollCorner() const { return 0; }
205 #if ENABLE(RUBBER_BANDING) 205 #if USE(RUBBER_BANDING)
206 virtual GraphicsLayer* layerForOverhangAreas() const { return 0; } 206 virtual GraphicsLayer* layerForOverhangAreas() const { return 0; }
207 #endif 207 #endif
208 bool hasLayerForHorizontalScrollbar() const; 208 bool hasLayerForHorizontalScrollbar() const;
209 bool hasLayerForVerticalScrollbar() const; 209 bool hasLayerForVerticalScrollbar() const;
210 bool hasLayerForScrollCorner() const; 210 bool hasLayerForScrollCorner() const;
211 211
212 private: 212 private:
213 void scrollPositionChanged(const IntPoint&); 213 void scrollPositionChanged(const IntPoint&);
214 214
215 // NOTE: Only called from the ScrollAnimator. 215 // NOTE: Only called from the ScrollAnimator.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // vertical-lr / ltr NO NO 247 // vertical-lr / ltr NO NO
248 // vertical-lr / rtl NO YES 248 // vertical-lr / rtl NO YES
249 // vertical-rl / ltr YES NO 249 // vertical-rl / ltr YES NO
250 // vertical-rl / rtl YES YES 250 // vertical-rl / rtl YES YES
251 IntPoint m_scrollOrigin; 251 IntPoint m_scrollOrigin;
252 }; 252 };
253 253
254 } // namespace WebCore 254 } // namespace WebCore
255 255
256 #endif // ScrollableArea_h 256 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/platform/ScrollView.cpp ('k') | Source/core/platform/ScrollbarTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698