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: public/platform/WebLayer.h

Issue 310503002: Highlighting on UAOS - alternate approach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.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) 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual void pauseAnimation(int animationId, double timeOffset) = 0; 161 virtual void pauseAnimation(int animationId, double timeOffset) = 0;
162 162
163 // Returns true if this layer has any active animations - useful for tests. 163 // Returns true if this layer has any active animations - useful for tests.
164 virtual bool hasActiveAnimation() = 0; 164 virtual bool hasActiveAnimation() = 0;
165 165
166 // If a scroll parent is set, this layer will inherit its parent's scroll 166 // If a scroll parent is set, this layer will inherit its parent's scroll
167 // delta and offset even though it will not be a descendant of the scroll 167 // delta and offset even though it will not be a descendant of the scroll
168 // in the layer hierarchy. 168 // in the layer hierarchy.
169 virtual void setScrollParent(WebLayer*) = 0; 169 virtual void setScrollParent(WebLayer*) = 0;
170 170
171 virtual bool hasScrollChildren() = 0;
172
171 // A layer will not respect any clips established by layers between it and 173 // A layer will not respect any clips established by layers between it and
172 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 174 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
173 // This is not a requirement of the scroll parent. 175 // This is not a requirement of the scroll parent.
174 virtual void setClipParent(WebLayer*) = 0; 176 virtual void setClipParent(WebLayer*) = 0;
175 177
176 // Scrolling 178 // Scrolling
177 virtual void setScrollPosition(WebPoint) = 0; 179 virtual void setScrollPosition(WebPoint) = 0;
178 virtual WebPoint scrollPosition() const = 0; 180 virtual WebPoint scrollPosition() const = 0;
179 181
180 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 182 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 222
221 // True if the layer is not part of a tree attached to a WebLayerTreeView. 223 // True if the layer is not part of a tree attached to a WebLayerTreeView.
222 virtual bool isOrphan() const = 0; 224 virtual bool isOrphan() const = 0;
223 225
224 virtual void setWebLayerClient(WebLayerClient*) = 0; 226 virtual void setWebLayerClient(WebLayerClient*) = 0;
225 }; 227 };
226 228
227 } // namespace blink 229 } // namespace blink
228 230
229 #endif // WebLayer_h 231 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698