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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Bug fix Created 3 years, 6 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 | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 blink::WebVector<blink::WebRect> TouchEventHandlerRegion() const override; 110 blink::WebVector<blink::WebRect> TouchEventHandlerRegion() const override;
111 void SetIsContainerForFixedPositionLayers(bool is_container) override; 111 void SetIsContainerForFixedPositionLayers(bool is_container) override;
112 bool IsContainerForFixedPositionLayers() const override; 112 bool IsContainerForFixedPositionLayers() const override;
113 void SetPositionConstraint( 113 void SetPositionConstraint(
114 const blink::WebLayerPositionConstraint& constraint) override; 114 const blink::WebLayerPositionConstraint& constraint) override;
115 blink::WebLayerPositionConstraint PositionConstraint() const override; 115 blink::WebLayerPositionConstraint PositionConstraint() const override;
116 void SetStickyPositionConstraint( 116 void SetStickyPositionConstraint(
117 const blink::WebLayerStickyPositionConstraint& constraint) override; 117 const blink::WebLayerStickyPositionConstraint& constraint) override;
118 blink::WebLayerStickyPositionConstraint StickyPositionConstraint() 118 blink::WebLayerStickyPositionConstraint StickyPositionConstraint()
119 const override; 119 const override;
120 void SetOffsetForStickyPosition(const blink::WebSize& offset) override;
121 blink::WebSize OffsetForStickyPosition() const override;
120 void SetScrollClient(blink::WebLayerScrollClient* client) override; 122 void SetScrollClient(blink::WebLayerScrollClient* client) override;
121 void SetLayerClient(cc::LayerClient* client) override; 123 void SetLayerClient(cc::LayerClient* client) override;
122 const cc::Layer* CcLayer() const override; 124 const cc::Layer* CcLayer() const override;
123 cc::Layer* CcLayer() override; 125 cc::Layer* CcLayer() override;
124 void SetElementId(const cc::ElementId&) override; 126 void SetElementId(const cc::ElementId&) override;
125 cc::ElementId GetElementId() const override; 127 cc::ElementId GetElementId() const override;
126 void SetCompositorMutableProperties(uint32_t properties) override; 128 void SetCompositorMutableProperties(uint32_t properties) override;
127 uint32_t CompositorMutableProperties() const override; 129 uint32_t CompositorMutableProperties() const override;
128 void SetHasWillChangeTransformHint(bool has_will_change) override; 130 void SetHasWillChangeTransformHint(bool has_will_change) override;
129 void ShowScrollbars() override; 131 void ShowScrollbars() override;
130 132
131 void SetScrollParent(blink::WebLayer* parent) override; 133 void SetScrollParent(blink::WebLayer* parent) override;
132 void SetClipParent(blink::WebLayer* parent) override; 134 void SetClipParent(blink::WebLayer* parent) override;
133 135
134 protected: 136 protected:
135 scoped_refptr<cc::Layer> layer_; 137 scoped_refptr<cc::Layer> layer_;
136 138
137 bool contents_opaque_is_fixed_; 139 bool contents_opaque_is_fixed_;
138 140
139 private: 141 private:
140 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 142 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
141 }; 143 };
142 144
143 } // namespace cc_blink 145 } // namespace cc_blink
144 146
145 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 147 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698