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

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

Issue 629583002: Make compositor and blink talk in fractional scroll offset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « public/platform/WebDoublePoint.h ('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 12 matching lines...) Expand all
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebLayer_h 26 #ifndef WebLayer_h
27 #define WebLayer_h 27 #define WebLayer_h
28 28
29 #include "WebBlendMode.h" 29 #include "WebBlendMode.h"
30 #include "WebColor.h" 30 #include "WebColor.h"
31 #include "WebCommon.h" 31 #include "WebCommon.h"
32 #include "WebCompositorAnimation.h" 32 #include "WebCompositorAnimation.h"
33 #include "WebDoublePoint.h"
33 #include "WebFloatPoint3D.h" 34 #include "WebFloatPoint3D.h"
34 #include "WebPoint.h" 35 #include "WebPoint.h"
35 #include "WebRect.h" 36 #include "WebRect.h"
36 #include "WebSize.h" 37 #include "WebSize.h"
37 #include "WebString.h" 38 #include "WebString.h"
38 #include "WebVector.h" 39 #include "WebVector.h"
39 40
40 class SkMatrix44; 41 class SkMatrix44;
41 class SkImageFilter; 42 class SkImageFilter;
42 43
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // delta and offset even though it will not be a descendant of the scroll 155 // delta and offset even though it will not be a descendant of the scroll
155 // in the layer hierarchy. 156 // in the layer hierarchy.
156 virtual void setScrollParent(WebLayer*) = 0; 157 virtual void setScrollParent(WebLayer*) = 0;
157 158
158 // A layer will not respect any clips established by layers between it and 159 // A layer will not respect any clips established by layers between it and
159 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. 160 // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
160 // This is not a requirement of the scroll parent. 161 // This is not a requirement of the scroll parent.
161 virtual void setClipParent(WebLayer*) = 0; 162 virtual void setClipParent(WebLayer*) = 0;
162 163
163 // Scrolling 164 // Scrolling
164 virtual void setScrollPosition(WebPoint) = 0; 165 virtual void setScrollPositionDouble(WebDoublePoint) = 0;
165 virtual WebPoint scrollPosition() const = 0; 166 virtual WebDoublePoint scrollPositionDouble() const = 0;
166 167
167 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 168 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
168 virtual void setScrollClipLayer(WebLayer*) = 0; 169 virtual void setScrollClipLayer(WebLayer*) = 0;
169 virtual bool scrollable() const = 0; 170 virtual bool scrollable() const = 0;
170 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; 171 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
171 virtual bool userScrollableHorizontal() const = 0; 172 virtual bool userScrollableHorizontal() const = 0;
172 virtual bool userScrollableVertical() const = 0; 173 virtual bool userScrollableVertical() const = 0;
173 174
174 virtual void setHaveWheelEventHandlers(bool) = 0; 175 virtual void setHaveWheelEventHandlers(bool) = 0;
175 virtual bool haveWheelEventHandlers() const = 0; 176 virtual bool haveWheelEventHandlers() const = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 208
208 // True if the layer is not part of a tree attached to a WebLayerTreeView. 209 // True if the layer is not part of a tree attached to a WebLayerTreeView.
209 virtual bool isOrphan() const = 0; 210 virtual bool isOrphan() const = 0;
210 211
211 virtual void setWebLayerClient(WebLayerClient*) = 0; 212 virtual void setWebLayerClient(WebLayerClient*) = 0;
212 }; 213 };
213 214
214 } // namespace blink 215 } // namespace blink
215 216
216 #endif // WebLayer_h 217 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « public/platform/WebDoublePoint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698