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

Side by Side Diff: cc/layers/layer.h

Issue 2840143002: [cc] Change semantics of fixed-pos container layer
Patch Set: add back inner viewport container layer as fixed-pos container 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 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 211 }
212 212
213 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); 213 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset);
214 214
215 gfx::ScrollOffset scroll_offset() const { return inputs_.scroll_offset; } 215 gfx::ScrollOffset scroll_offset() const { return inputs_.scroll_offset; }
216 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset); 216 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset);
217 217
218 void SetScrollClipLayerId(int clip_layer_id); 218 void SetScrollClipLayerId(int clip_layer_id);
219 bool scrollable() const { return inputs_.scroll_clip_layer_id != INVALID_ID; } 219 bool scrollable() const { return inputs_.scroll_clip_layer_id != INVALID_ID; }
220 Layer* scroll_clip_layer() const; 220 Layer* scroll_clip_layer() const;
221 int scroll_clip_layer_id() const { return inputs_.scroll_clip_layer_id; }
221 222
222 void SetUserScrollable(bool horizontal, bool vertical); 223 void SetUserScrollable(bool horizontal, bool vertical);
223 bool user_scrollable_horizontal() const { 224 bool user_scrollable_horizontal() const {
224 return inputs_.user_scrollable_horizontal; 225 return inputs_.user_scrollable_horizontal;
225 } 226 }
226 bool user_scrollable_vertical() const { 227 bool user_scrollable_vertical() const {
227 return inputs_.user_scrollable_vertical; 228 return inputs_.user_scrollable_vertical;
228 } 229 }
229 230
230 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); 231 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // These all act like draw properties, so don't need push properties. 640 // These all act like draw properties, so don't need push properties.
640 gfx::Rect visible_layer_rect_; 641 gfx::Rect visible_layer_rect_;
641 size_t num_unclipped_descendants_; 642 size_t num_unclipped_descendants_;
642 643
643 DISALLOW_COPY_AND_ASSIGN(Layer); 644 DISALLOW_COPY_AND_ASSIGN(Layer);
644 }; 645 };
645 646
646 } // namespace cc 647 } // namespace cc
647 648
648 #endif // CC_LAYERS_LAYER_H_ 649 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_position_constraint_unittest.cc » ('j') | cc/test/layer_tree_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698