| 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 SetHaveWheelEventHandlers(bool have_wheel_event_handlers); | |
| 288 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | |
| 289 | |
| 290 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); | 287 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); |
| 291 bool have_scroll_event_handlers() const { | 288 bool have_scroll_event_handlers() const { |
| 292 return have_scroll_event_handlers_; | 289 return have_scroll_event_handlers_; |
| 293 } | 290 } |
| 294 | 291 |
| 295 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); | 292 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); |
| 296 const Region& non_fast_scrollable_region() const { | 293 const Region& non_fast_scrollable_region() const { |
| 297 return non_fast_scrollable_region_; | 294 return non_fast_scrollable_region_; |
| 298 } | 295 } |
| 299 | 296 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 int transform_tree_index_; | 713 int transform_tree_index_; |
| 717 int effect_tree_index_; | 714 int effect_tree_index_; |
| 718 int clip_tree_index_; | 715 int clip_tree_index_; |
| 719 int scroll_tree_index_; | 716 int scroll_tree_index_; |
| 720 int property_tree_sequence_number_; | 717 int property_tree_sequence_number_; |
| 721 uint64_t element_id_; | 718 uint64_t element_id_; |
| 722 uint32_t mutable_properties_; | 719 uint32_t mutable_properties_; |
| 723 gfx::Vector2dF offset_to_transform_parent_; | 720 gfx::Vector2dF offset_to_transform_parent_; |
| 724 uint32_t main_thread_scrolling_reasons_; | 721 uint32_t main_thread_scrolling_reasons_; |
| 725 bool should_flatten_transform_from_property_tree_ : 1; | 722 bool should_flatten_transform_from_property_tree_ : 1; |
| 726 bool have_wheel_event_handlers_ : 1; | |
| 727 bool have_scroll_event_handlers_ : 1; | 723 bool have_scroll_event_handlers_ : 1; |
| 728 bool user_scrollable_horizontal_ : 1; | 724 bool user_scrollable_horizontal_ : 1; |
| 729 bool user_scrollable_vertical_ : 1; | 725 bool user_scrollable_vertical_ : 1; |
| 730 bool is_root_for_isolated_group_ : 1; | 726 bool is_root_for_isolated_group_ : 1; |
| 731 bool is_container_for_fixed_position_layers_ : 1; | 727 bool is_container_for_fixed_position_layers_ : 1; |
| 732 bool is_drawable_ : 1; | 728 bool is_drawable_ : 1; |
| 733 bool draws_content_ : 1; | 729 bool draws_content_ : 1; |
| 734 bool hide_layer_and_subtree_ : 1; | 730 bool hide_layer_and_subtree_ : 1; |
| 735 bool masks_to_bounds_ : 1; | 731 bool masks_to_bounds_ : 1; |
| 736 bool contents_opaque_ : 1; | 732 bool contents_opaque_ : 1; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 | 783 |
| 788 std::vector<FrameTimingRequest> frame_timing_requests_; | 784 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 789 bool frame_timing_requests_dirty_; | 785 bool frame_timing_requests_dirty_; |
| 790 | 786 |
| 791 DISALLOW_COPY_AND_ASSIGN(Layer); | 787 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 792 }; | 788 }; |
| 793 | 789 |
| 794 } // namespace cc | 790 } // namespace cc |
| 795 | 791 |
| 796 #endif // CC_LAYERS_LAYER_H_ | 792 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |