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

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

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 7 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
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 virtual void setShouldScrollOnMainThread(bool) = 0; 193 virtual void setShouldScrollOnMainThread(bool) = 0;
194 virtual bool shouldScrollOnMainThread() const = 0; 194 virtual bool shouldScrollOnMainThread() const = 0;
195 195
196 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 196 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
197 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 197 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
198 198
199 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 199 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
200 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 200 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
201 201
202 virtual void setFrameTimingRequests(const WebVector<std::pair<int64_t, WebRe ct>>&) = 0;
chrishtr 2015/05/09 00:51:52 Add a comment referencing the feature spec, simila
MikeB 2015/05/11 23:10:52 Done.
203 virtual WebVector<std::pair<int64_t, WebRect>> frameTimingRequests() const = 0;
204
202 // FIXME: Make pure once cc is updated. crbug.com/347272 205 // FIXME: Make pure once cc is updated. crbug.com/347272
203 virtual void setScrollBlocksOn(WebScrollBlocksOn) { }; 206 virtual void setScrollBlocksOn(WebScrollBlocksOn) { };
204 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN one;}; 207 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN one;};
205 208
206 virtual void setIsContainerForFixedPositionLayers(bool) = 0; 209 virtual void setIsContainerForFixedPositionLayers(bool) = 0;
207 virtual bool isContainerForFixedPositionLayers() const = 0; 210 virtual bool isContainerForFixedPositionLayers() const = 0;
208 211
209 // This function sets layer position constraint. The constraint will be used 212 // This function sets layer position constraint. The constraint will be used
210 // to adjust layer position during threaded scrolling. 213 // to adjust layer position during threaded scrolling.
211 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; 214 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0;
(...skipping 12 matching lines...) Expand all
224 227
225 // True if the layer is not part of a tree attached to a WebLayerTreeView. 228 // True if the layer is not part of a tree attached to a WebLayerTreeView.
226 virtual bool isOrphan() const = 0; 229 virtual bool isOrphan() const = 0;
227 230
228 virtual void setWebLayerClient(WebLayerClient*) = 0; 231 virtual void setWebLayerClient(WebLayerClient*) = 0;
229 }; 232 };
230 233
231 } // namespace blink 234 } // namespace blink
232 235
233 #endif // WebLayer_h 236 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698