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

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

Issue 1148283011: Update programmatic scrolls on the RootFrameViewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/layout/compositing/DeprecatedPaintLayerCompositor.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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // NOTE: Only called from Internals for testing. 218 // NOTE: Only called from Internals for testing.
219 void setScrollOffsetFromInternals(const IntPoint&); 219 void setScrollOffsetFromInternals(const IntPoint&);
220 220
221 IntPoint clampScrollPosition(const IntPoint&) const; 221 IntPoint clampScrollPosition(const IntPoint&) const;
222 DoublePoint clampScrollPosition(const DoublePoint&) const; 222 DoublePoint clampScrollPosition(const DoublePoint&) const;
223 223
224 // Let subclasses provide a way of asking for and servicing scroll 224 // Let subclasses provide a way of asking for and servicing scroll
225 // animations. 225 // animations.
226 bool scheduleAnimation(); 226 bool scheduleAnimation();
227 virtual void serviceScrollAnimations(double monotonicTime); 227 virtual void serviceScrollAnimations(double monotonicTime);
228 void updateCompositorScrollAnimations(); 228 virtual void updateCompositorScrollAnimations();
229 virtual void registerForAnimation() { } 229 virtual void registerForAnimation() { }
230 virtual void deregisterForAnimation() { } 230 virtual void deregisterForAnimation() { }
231 231
232 void notifyCompositorAnimationFinished(int groupId); 232 void notifyCompositorAnimationFinished(int groupId);
233 233
234 virtual bool usesCompositedScrolling() const { return false; } 234 virtual bool usesCompositedScrolling() const { return false; }
235 235
236 // Returns true if the GraphicsLayer tree needs to be rebuilt. 236 // Returns true if the GraphicsLayer tree needs to be rebuilt.
237 virtual bool updateAfterCompositingChange() { return false; } 237 virtual bool updateAfterCompositingChange() { return false; }
238 238
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // vertical-lr / ltr NO NO 363 // vertical-lr / ltr NO NO
364 // vertical-lr / rtl NO YES 364 // vertical-lr / rtl NO YES
365 // vertical-rl / ltr YES NO 365 // vertical-rl / ltr YES NO
366 // vertical-rl / rtl YES YES 366 // vertical-rl / rtl YES YES
367 IntPoint m_scrollOrigin; 367 IntPoint m_scrollOrigin;
368 }; 368 };
369 369
370 } // namespace blink 370 } // namespace blink
371 371
372 #endif // ScrollableArea_h 372 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698