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

Side by Side Diff: public/platform/WebLayer.h

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual void pauseAnimation(int animationId, double timeOffset) = 0; 160 virtual void pauseAnimation(int animationId, double timeOffset) = 0;
161 161
162 // The following functions suspend and resume all animations. The given time 162 // The following functions suspend and resume all animations. The given time
163 // is assumed to use the same time base as monotonicallyIncreasingTime(). 163 // is assumed to use the same time base as monotonicallyIncreasingTime().
164 virtual void suspendAnimations(double monotonicTime) = 0; 164 virtual void suspendAnimations(double monotonicTime) = 0;
165 virtual void resumeAnimations(double monotonicTime) = 0; 165 virtual void resumeAnimations(double monotonicTime) = 0;
166 166
167 // Returns true if this layer has any active animations - useful for tests. 167 // Returns true if this layer has any active animations - useful for tests.
168 virtual bool hasActiveAnimation() = 0; 168 virtual bool hasActiveAnimation() = 0;
169 169
170 // If a scroll parent is set, this layer will inherit its parent's scroll
171 // delta and offset even though it will not be a descendant of the scroll
172 // in the layer hierarchy.
173 virtual void setScrollParent(WebLayer*) { }
174
175 // A layer will not respect any clips established by layers between it and
176 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
177 // This is not a requirement of the scroll parent.
178 virtual void setClipParent(WebLayer*) { }
179
170 // Transfers all animations running on the current layer. 180 // Transfers all animations running on the current layer.
171 virtual void transferAnimationsTo(WebLayer*) { } 181 virtual void transferAnimationsTo(WebLayer*) { }
172 182
173 // Scrolling 183 // Scrolling
174 virtual void setScrollPosition(WebPoint) = 0; 184 virtual void setScrollPosition(WebPoint) = 0;
175 virtual WebPoint scrollPosition() const = 0; 185 virtual WebPoint scrollPosition() const = 0;
176 186
177 virtual void setMaxScrollPosition(WebSize) = 0; 187 virtual void setMaxScrollPosition(WebSize) = 0;
178 virtual WebSize maxScrollPosition() const = 0; 188 virtual WebSize maxScrollPosition() const = 0;
179 189
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // so, but this is to facilitate benchmarks and tests. 221 // so, but this is to facilitate benchmarks and tests.
212 virtual void setForceRenderSurface(bool) = 0; 222 virtual void setForceRenderSurface(bool) = 0;
213 223
214 // True if the layer is not part of a tree attached to a WebLayerTreeView. 224 // True if the layer is not part of a tree attached to a WebLayerTreeView.
215 virtual bool isOrphan() const = 0; 225 virtual bool isOrphan() const = 0;
216 }; 226 };
217 227
218 } // namespace WebKit 228 } // namespace WebKit
219 229
220 #endif // WebLayer_h 230 #endif // WebLayer_h
OLDNEW
« Source/core/page/scrolling/ScrollingCoordinator.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698