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

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

Issue 680263005: Remove layerIsContainerForFixedPositionLayers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 virtual void setShouldScrollOnMainThread(bool) = 0; 180 virtual void setShouldScrollOnMainThread(bool) = 0;
181 virtual bool shouldScrollOnMainThread() const = 0; 181 virtual bool shouldScrollOnMainThread() const = 0;
182 182
183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
184 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 184 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
185 185
186 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 186 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
187 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 187 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
188 188
189 virtual void setIsContainerForFixedPositionLayers(bool) = 0;
190 virtual bool isContainerForFixedPositionLayers() const = 0;
191
192 // The scroll client is notified when the scroll position of the WebLayer 189 // The scroll client is notified when the scroll position of the WebLayer
193 // changes. Only a single scroll client can be set for a WebLayer at a time. 190 // changes. Only a single scroll client can be set for a WebLayer at a time.
194 // The WebLayer does not take ownership of the scroll client, and it is the 191 // The WebLayer does not take ownership of the scroll client, and it is the
195 // responsibility of the client to reset the layer's scroll client before 192 // responsibility of the client to reset the layer's scroll client before
196 // deleting the scroll client. 193 // deleting the scroll client.
197 virtual void setScrollClient(WebLayerScrollClient*) = 0; 194 virtual void setScrollClient(WebLayerScrollClient*) = 0;
198 195
199 // Forces this layer to use a render surface. There is no benefit in doing 196 // Forces this layer to use a render surface. There is no benefit in doing
200 // so, but this is to facilitate benchmarks and tests. 197 // so, but this is to facilitate benchmarks and tests.
201 virtual void setForceRenderSurface(bool) = 0; 198 virtual void setForceRenderSurface(bool) = 0;
202 199
203 // True if the layer is not part of a tree attached to a WebLayerTreeView. 200 // True if the layer is not part of a tree attached to a WebLayerTreeView.
204 virtual bool isOrphan() const = 0; 201 virtual bool isOrphan() const = 0;
205 202
206 virtual void setWebLayerClient(WebLayerClient*) = 0; 203 virtual void setWebLayerClient(WebLayerClient*) = 0;
207 }; 204 };
208 205
209 } // namespace blink 206 } // namespace blink
210 207
211 #endif // WebLayer_h 208 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | sky/viewer/cc/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698