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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 return user_scrollable_horizontal_; | 277 return user_scrollable_horizontal_; |
278 } | 278 } |
279 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 279 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
280 | 280 |
281 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); | 281 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); |
282 void ClearMainThreadScrollingReasons(); | 282 void ClearMainThreadScrollingReasons(); |
283 bool should_scroll_on_main_thread() const { | 283 bool should_scroll_on_main_thread() const { |
284 return !!main_thread_scrolling_reasons_; | 284 return !!main_thread_scrolling_reasons_; |
285 } | 285 } |
286 | 286 |
287 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); | |
288 bool have_scroll_event_handlers() const { | |
289 return have_scroll_event_handlers_; | |
290 } | |
291 | |
292 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); | 287 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); |
293 const Region& non_fast_scrollable_region() const { | 288 const Region& non_fast_scrollable_region() const { |
294 return non_fast_scrollable_region_; | 289 return non_fast_scrollable_region_; |
295 } | 290 } |
296 | 291 |
297 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); | 292 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); |
298 const Region& touch_event_handler_region() const { | 293 const Region& touch_event_handler_region() const { |
299 return touch_event_handler_region_; | 294 return touch_event_handler_region_; |
300 } | 295 } |
301 | 296 |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 int transform_tree_index_; | 708 int transform_tree_index_; |
714 int effect_tree_index_; | 709 int effect_tree_index_; |
715 int clip_tree_index_; | 710 int clip_tree_index_; |
716 int scroll_tree_index_; | 711 int scroll_tree_index_; |
717 int property_tree_sequence_number_; | 712 int property_tree_sequence_number_; |
718 uint64_t element_id_; | 713 uint64_t element_id_; |
719 uint32_t mutable_properties_; | 714 uint32_t mutable_properties_; |
720 gfx::Vector2dF offset_to_transform_parent_; | 715 gfx::Vector2dF offset_to_transform_parent_; |
721 uint32_t main_thread_scrolling_reasons_; | 716 uint32_t main_thread_scrolling_reasons_; |
722 bool should_flatten_transform_from_property_tree_ : 1; | 717 bool should_flatten_transform_from_property_tree_ : 1; |
723 bool have_scroll_event_handlers_ : 1; | |
724 bool user_scrollable_horizontal_ : 1; | 718 bool user_scrollable_horizontal_ : 1; |
725 bool user_scrollable_vertical_ : 1; | 719 bool user_scrollable_vertical_ : 1; |
726 bool is_root_for_isolated_group_ : 1; | 720 bool is_root_for_isolated_group_ : 1; |
727 bool is_container_for_fixed_position_layers_ : 1; | 721 bool is_container_for_fixed_position_layers_ : 1; |
728 bool is_drawable_ : 1; | 722 bool is_drawable_ : 1; |
729 bool draws_content_ : 1; | 723 bool draws_content_ : 1; |
730 bool hide_layer_and_subtree_ : 1; | 724 bool hide_layer_and_subtree_ : 1; |
731 bool masks_to_bounds_ : 1; | 725 bool masks_to_bounds_ : 1; |
732 bool contents_opaque_ : 1; | 726 bool contents_opaque_ : 1; |
733 bool double_sided_ : 1; | 727 bool double_sided_ : 1; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 777 |
784 std::vector<FrameTimingRequest> frame_timing_requests_; | 778 std::vector<FrameTimingRequest> frame_timing_requests_; |
785 bool frame_timing_requests_dirty_; | 779 bool frame_timing_requests_dirty_; |
786 | 780 |
787 DISALLOW_COPY_AND_ASSIGN(Layer); | 781 DISALLOW_COPY_AND_ASSIGN(Layer); |
788 }; | 782 }; |
789 | 783 |
790 } // namespace cc | 784 } // namespace cc |
791 | 785 |
792 #endif // CC_LAYERS_LAYER_H_ | 786 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |