| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |