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

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

Issue 13818029: Remove TiledBacking / TileCache code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 8 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/WebCore/platform/ScrollView.cpp ('k') | Source/WebCore/platform/graphics/TiledBacking.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 19 matching lines...) Expand all
30 #include <wtf/Vector.h> 30 #include <wtf/Vector.h>
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class FloatPoint; 34 class FloatPoint;
35 class GraphicsContext; 35 class GraphicsContext;
36 class GraphicsLayer; 36 class GraphicsLayer;
37 class PlatformGestureEvent; 37 class PlatformGestureEvent;
38 class PlatformWheelEvent; 38 class PlatformWheelEvent;
39 class ScrollAnimator; 39 class ScrollAnimator;
40 class TiledBacking;
41 40
42 class ScrollableArea { 41 class ScrollableArea {
43 public: 42 public:
44 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1); 43 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1);
45 void scrollToOffsetWithoutAnimation(const FloatPoint&); 44 void scrollToOffsetWithoutAnimation(const FloatPoint&);
46 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset); 45 void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset);
47 46
48 // Should be called when the scroll position changes externally, for example if the scroll layer position 47 // Should be called when the scroll position changes externally, for example if the scroll layer position
49 // is updated on the scrolling thread and we need to notify the main thread. 48 // is updated on the scrolling thread and we need to notify the main thread.
50 void notifyScrollPositionChanged(const IntPoint&); 49 void notifyScrollPositionChanged(const IntPoint&);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void setScrollOffsetFromInternals(const IntPoint&); 171 void setScrollOffsetFromInternals(const IntPoint&);
173 172
174 static IntPoint constrainScrollPositionForOverhang(const IntRect& visibleCon tentRect, const IntSize& totalContentsSize, const IntPoint& scrollPosition, cons t IntPoint& scrollOrigin, int headerHeight, int footetHeight); 173 static IntPoint constrainScrollPositionForOverhang(const IntRect& visibleCon tentRect, const IntSize& totalContentsSize, const IntPoint& scrollPosition, cons t IntPoint& scrollOrigin, int headerHeight, int footetHeight);
175 IntPoint constrainScrollPositionForOverhang(const IntPoint& scrollPosition); 174 IntPoint constrainScrollPositionForOverhang(const IntPoint& scrollPosition);
176 175
177 // Let subclasses provide a way of asking for and servicing scroll 176 // Let subclasses provide a way of asking for and servicing scroll
178 // animations. 177 // animations.
179 virtual bool scheduleAnimation() { return false; } 178 virtual bool scheduleAnimation() { return false; }
180 void serviceScrollAnimations(); 179 void serviceScrollAnimations();
181 180
182 virtual TiledBacking* tiledBacking() { return 0; }
183 virtual bool usesCompositedScrolling() const { return false; } 181 virtual bool usesCompositedScrolling() const { return false; }
184 182
185 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 183 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
186 184
187 protected: 185 protected:
188 ScrollableArea(); 186 ScrollableArea();
189 virtual ~ScrollableArea(); 187 virtual ~ScrollableArea();
190 188
191 void setScrollOrigin(const IntPoint&); 189 void setScrollOrigin(const IntPoint&);
192 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } 190 void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // vertical-lr / ltr NO NO 237 // vertical-lr / ltr NO NO
240 // vertical-lr / rtl NO YES 238 // vertical-lr / rtl NO YES
241 // vertical-rl / ltr YES NO 239 // vertical-rl / ltr YES NO
242 // vertical-rl / rtl YES YES 240 // vertical-rl / rtl YES YES
243 IntPoint m_scrollOrigin; 241 IntPoint m_scrollOrigin;
244 }; 242 };
245 243
246 } // namespace WebCore 244 } // namespace WebCore
247 245
248 #endif // ScrollableArea_h 246 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/WebCore/platform/ScrollView.cpp ('k') | Source/WebCore/platform/graphics/TiledBacking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698