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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Update WebScrollBoundaryBehavior. Created 3 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 18 matching lines...) Expand all
29 #include "cc/layers/layer.h" 29 #include "cc/layers/layer.h"
30 30
31 #include "WebBlendMode.h" 31 #include "WebBlendMode.h"
32 #include "WebColor.h" 32 #include "WebColor.h"
33 #include "WebCommon.h" 33 #include "WebCommon.h"
34 #include "WebFloatPoint.h" 34 #include "WebFloatPoint.h"
35 #include "WebFloatPoint3D.h" 35 #include "WebFloatPoint3D.h"
36 #include "WebFloatSize.h" 36 #include "WebFloatSize.h"
37 #include "WebPoint.h" 37 #include "WebPoint.h"
38 #include "WebRect.h" 38 #include "WebRect.h"
39 #include "WebScrollBoundaryBehavior.h"
39 #include "WebSize.h" 40 #include "WebSize.h"
40 #include "WebString.h" 41 #include "WebString.h"
41 #include "WebTouchInfo.h" 42 #include "WebTouchInfo.h"
42 #include "WebVector.h" 43 #include "WebVector.h"
43 44
44 class SkMatrix44; 45 class SkMatrix44;
45 46
46 namespace cc { 47 namespace cc {
47 class Layer; 48 class Layer;
48 class LayerClient; 49 class LayerClient;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const WebLayerStickyPositionConstraint&) = 0; 203 const WebLayerStickyPositionConstraint&) = 0;
203 virtual WebLayerStickyPositionConstraint StickyPositionConstraint() const = 0; 204 virtual WebLayerStickyPositionConstraint StickyPositionConstraint() const = 0;
204 205
205 // The scroll client is notified when the scroll position of the WebLayer 206 // The scroll client is notified when the scroll position of the WebLayer
206 // changes. Only a single scroll client can be set for a WebLayer at a time. 207 // changes. Only a single scroll client can be set for a WebLayer at a time.
207 // The WebLayer does not take ownership of the scroll client, and it is the 208 // The WebLayer does not take ownership of the scroll client, and it is the
208 // responsibility of the client to reset the layer's scroll client before 209 // responsibility of the client to reset the layer's scroll client before
209 // deleting the scroll client. 210 // deleting the scroll client.
210 virtual void SetScrollClient(WebLayerScrollClient*) = 0; 211 virtual void SetScrollClient(WebLayerScrollClient*) = 0;
211 212
213 virtual void SetScrollBoundaryBehavior(WebScrollBoundaryBehavior) = 0;
214
212 // Sets the cc-side layer client. 215 // Sets the cc-side layer client.
213 virtual void SetLayerClient(cc::LayerClient*) = 0; 216 virtual void SetLayerClient(cc::LayerClient*) = 0;
214 217
215 // Gets the underlying cc layer. 218 // Gets the underlying cc layer.
216 virtual const cc::Layer* CcLayer() const = 0; 219 virtual const cc::Layer* CcLayer() const = 0;
217 virtual cc::Layer* CcLayer() = 0; 220 virtual cc::Layer* CcLayer() = 0;
218 221
219 virtual void SetElementId(const cc::ElementId&) = 0; 222 virtual void SetElementId(const cc::ElementId&) = 0;
220 virtual cc::ElementId GetElementId() const = 0; 223 virtual cc::ElementId GetElementId() const = 0;
221 224
222 virtual void SetCompositorMutableProperties(uint32_t) = 0; 225 virtual void SetCompositorMutableProperties(uint32_t) = 0;
223 virtual uint32_t CompositorMutableProperties() const = 0; 226 virtual uint32_t CompositorMutableProperties() const = 0;
224 227
225 virtual void SetHasWillChangeTransformHint(bool) = 0; 228 virtual void SetHasWillChangeTransformHint(bool) = 0;
226 229
227 // Called on the scroll layer to trigger showing the overlay scrollbars. 230 // Called on the scroll layer to trigger showing the overlay scrollbars.
228 virtual void ShowScrollbars() = 0; 231 virtual void ShowScrollbars() = 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