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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 IntPoint clampScrollPosition(const IntPoint&) const; 167 IntPoint clampScrollPosition(const IntPoint&) const;
168 168
169 // Let subclasses provide a way of asking for and servicing scroll 169 // Let subclasses provide a way of asking for and servicing scroll
170 // animations. 170 // animations.
171 virtual bool scheduleAnimation() { return false; } 171 virtual bool scheduleAnimation() { return false; }
172 void serviceScrollAnimations(); 172 void serviceScrollAnimations();
173 173
174 virtual bool usesCompositedScrolling() const { return false; } 174 virtual bool usesCompositedScrolling() const { return false; }
175 175
176 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
177
178 protected: 176 protected:
179 ScrollableArea(); 177 ScrollableArea();
180 virtual ~ScrollableArea(); 178 virtual ~ScrollableArea();
181 179
182 void setScrollOrigin(const IntPoint&); 180 void setScrollOrigin(const IntPoint&);
183 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } 181 void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
184 182
185 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; 183 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0;
186 virtual void invalidateScrollCornerRect(const IntRect&) = 0; 184 virtual void invalidateScrollCornerRect(const IntRect&) = 0;
187 185
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // vertical-lr / ltr NO NO 228 // vertical-lr / ltr NO NO
231 // vertical-lr / rtl NO YES 229 // vertical-lr / rtl NO YES
232 // vertical-rl / ltr YES NO 230 // vertical-rl / ltr YES NO
233 // vertical-rl / rtl YES YES 231 // vertical-rl / rtl YES YES
234 IntPoint m_scrollOrigin; 232 IntPoint m_scrollOrigin;
235 }; 233 };
236 234
237 } // namespace WebCore 235 } // namespace WebCore
238 236
239 #endif // ScrollableArea_h 237 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/platform/PlatformMemoryInstrumentation.cpp ('k') | Source/core/platform/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698