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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 return user_scrollable_horizontal_; | 276 return user_scrollable_horizontal_; |
277 } | 277 } |
278 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 278 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
279 | 279 |
280 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); | 280 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); |
281 void ClearMainThreadScrollingReasons(); | 281 void ClearMainThreadScrollingReasons(); |
282 bool should_scroll_on_main_thread() const { | 282 bool should_scroll_on_main_thread() const { |
283 return !!main_thread_scrolling_reasons_; | 283 return !!main_thread_scrolling_reasons_; |
284 } | 284 } |
285 | 285 |
286 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers); | |
287 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | |
288 | |
289 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); | 286 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); |
290 bool have_scroll_event_handlers() const { | 287 bool have_scroll_event_handlers() const { |
291 return have_scroll_event_handlers_; | 288 return have_scroll_event_handlers_; |
292 } | 289 } |
293 | 290 |
294 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); | 291 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); |
295 const Region& non_fast_scrollable_region() const { | 292 const Region& non_fast_scrollable_region() const { |
296 return non_fast_scrollable_region_; | 293 return non_fast_scrollable_region_; |
297 } | 294 } |
298 | 295 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 int num_descendants_that_draw_content_; | 717 int num_descendants_that_draw_content_; |
721 int transform_tree_index_; | 718 int transform_tree_index_; |
722 int effect_tree_index_; | 719 int effect_tree_index_; |
723 int clip_tree_index_; | 720 int clip_tree_index_; |
724 int property_tree_sequence_number_; | 721 int property_tree_sequence_number_; |
725 uint64_t element_id_; | 722 uint64_t element_id_; |
726 uint32_t mutable_properties_; | 723 uint32_t mutable_properties_; |
727 gfx::Vector2dF offset_to_transform_parent_; | 724 gfx::Vector2dF offset_to_transform_parent_; |
728 uint32_t main_thread_scrolling_reasons_; | 725 uint32_t main_thread_scrolling_reasons_; |
729 bool should_flatten_transform_from_property_tree_ : 1; | 726 bool should_flatten_transform_from_property_tree_ : 1; |
730 bool have_wheel_event_handlers_ : 1; | |
731 bool have_scroll_event_handlers_ : 1; | 727 bool have_scroll_event_handlers_ : 1; |
732 bool user_scrollable_horizontal_ : 1; | 728 bool user_scrollable_horizontal_ : 1; |
733 bool user_scrollable_vertical_ : 1; | 729 bool user_scrollable_vertical_ : 1; |
734 bool is_root_for_isolated_group_ : 1; | 730 bool is_root_for_isolated_group_ : 1; |
735 bool is_container_for_fixed_position_layers_ : 1; | 731 bool is_container_for_fixed_position_layers_ : 1; |
736 bool is_drawable_ : 1; | 732 bool is_drawable_ : 1; |
737 bool draws_content_ : 1; | 733 bool draws_content_ : 1; |
738 bool hide_layer_and_subtree_ : 1; | 734 bool hide_layer_and_subtree_ : 1; |
739 bool masks_to_bounds_ : 1; | 735 bool masks_to_bounds_ : 1; |
740 bool contents_opaque_ : 1; | 736 bool contents_opaque_ : 1; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 std::vector<FrameTimingRequest> frame_timing_requests_; | 789 std::vector<FrameTimingRequest> frame_timing_requests_; |
794 bool frame_timing_requests_dirty_; | 790 bool frame_timing_requests_dirty_; |
795 bool is_hidden_from_property_trees_; | 791 bool is_hidden_from_property_trees_; |
796 | 792 |
797 DISALLOW_COPY_AND_ASSIGN(Layer); | 793 DISALLOW_COPY_AND_ASSIGN(Layer); |
798 }; | 794 }; |
799 | 795 |
800 } // namespace cc | 796 } // namespace cc |
801 | 797 |
802 #endif // CC_LAYERS_LAYER_H_ | 798 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |