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

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

Issue 722063002: Remove moar composited scrolling from sky (Closed) Base URL: https://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
« no previous file with comments | « no previous file | sky/viewer/cc/web_layer_impl.h » ('j') | 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 159 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
160 // This is not a requirement of the scroll parent. 160 // This is not a requirement of the scroll parent.
161 virtual void setClipParent(WebLayer*) = 0; 161 virtual void setClipParent(WebLayer*) = 0;
162 162
163 // Scrolling 163 // Scrolling
164 virtual void setScrollPosition(WebPoint) = 0; 164 virtual void setScrollPosition(WebPoint) = 0;
165 virtual WebPoint scrollPosition() const = 0; 165 virtual WebPoint scrollPosition() const = 0;
166 166
167 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 167 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
168 virtual void setScrollClipLayer(WebLayer*) = 0; 168 virtual void setScrollClipLayer(WebLayer*) = 0;
169 virtual bool scrollable() const = 0;
170 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
171 virtual bool userScrollableHorizontal() const = 0;
172 virtual bool userScrollableVertical() const = 0;
173
174 virtual void setHaveWheelEventHandlers(bool) = 0;
175 virtual bool haveWheelEventHandlers() const = 0;
176
177 virtual void setHaveScrollEventHandlers(bool) = 0;
178 virtual bool haveScrollEventHandlers() const = 0;
179
180 virtual void setShouldScrollOnMainThread(bool) = 0;
181 virtual bool shouldScrollOnMainThread() const = 0;
182
183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
184 169
185 // The scroll client is notified when the scroll position of the WebLayer 170 // The scroll client is notified when the scroll position of the WebLayer
186 // changes. Only a single scroll client can be set for a WebLayer at a time. 171 // changes. Only a single scroll client can be set for a WebLayer at a time.
187 // The WebLayer does not take ownership of the scroll client, and it is the 172 // The WebLayer does not take ownership of the scroll client, and it is the
188 // responsibility of the client to reset the layer's scroll client before 173 // responsibility of the client to reset the layer's scroll client before
189 // deleting the scroll client. 174 // deleting the scroll client.
190 virtual void setScrollClient(WebLayerScrollClient*) = 0; 175 virtual void setScrollClient(WebLayerScrollClient*) = 0;
191 176
192 // Forces this layer to use a render surface. There is no benefit in doing 177 // Forces this layer to use a render surface. There is no benefit in doing
193 // so, but this is to facilitate benchmarks and tests. 178 // so, but this is to facilitate benchmarks and tests.
194 virtual void setForceRenderSurface(bool) = 0; 179 virtual void setForceRenderSurface(bool) = 0;
195 180
196 // True if the layer is not part of a tree attached to a WebLayerTreeView. 181 // True if the layer is not part of a tree attached to a WebLayerTreeView.
197 virtual bool isOrphan() const = 0; 182 virtual bool isOrphan() const = 0;
198 183
199 virtual void setWebLayerClient(WebLayerClient*) = 0; 184 virtual void setWebLayerClient(WebLayerClient*) = 0;
200 }; 185 };
201 186
202 } // namespace blink 187 } // namespace blink
203 188
204 #endif // WebLayer_h 189 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « no previous file | sky/viewer/cc/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698