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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 void SetScrollClipLayerId(int clip_layer_id); | 271 void SetScrollClipLayerId(int clip_layer_id); |
272 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } | 272 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } |
273 | 273 |
274 void SetUserScrollable(bool horizontal, bool vertical); | 274 void SetUserScrollable(bool horizontal, bool vertical); |
275 bool user_scrollable_horizontal() const { | 275 bool user_scrollable_horizontal() const { |
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( | 280 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); |
281 InputHandler::MainThreadScrollingReason main_thread_scrolling_reasons); | |
282 void ClearMainThreadScrollingReasons(); | 281 void ClearMainThreadScrollingReasons(); |
283 bool should_scroll_on_main_thread() const { | 282 bool should_scroll_on_main_thread() const { |
284 return !!main_thread_scrolling_reasons_; | 283 return !!main_thread_scrolling_reasons_; |
285 } | 284 } |
286 | 285 |
287 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers); | 286 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers); |
288 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | 287 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
289 | 288 |
290 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); | 289 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers); |
291 bool have_scroll_event_handlers() const { | 290 bool have_scroll_event_handlers() const { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 // this layer. | 718 // this layer. |
720 int scroll_clip_layer_id_; | 719 int scroll_clip_layer_id_; |
721 int num_descendants_that_draw_content_; | 720 int num_descendants_that_draw_content_; |
722 int transform_tree_index_; | 721 int transform_tree_index_; |
723 int effect_tree_index_; | 722 int effect_tree_index_; |
724 int clip_tree_index_; | 723 int clip_tree_index_; |
725 int property_tree_sequence_number_; | 724 int property_tree_sequence_number_; |
726 uint64_t element_id_; | 725 uint64_t element_id_; |
727 uint32_t mutable_properties_; | 726 uint32_t mutable_properties_; |
728 gfx::Vector2dF offset_to_transform_parent_; | 727 gfx::Vector2dF offset_to_transform_parent_; |
729 InputHandler::MainThreadScrollingReason main_thread_scrolling_reasons_; | 728 uint32_t main_thread_scrolling_reasons_; |
730 bool should_flatten_transform_from_property_tree_ : 1; | 729 bool should_flatten_transform_from_property_tree_ : 1; |
731 bool have_wheel_event_handlers_ : 1; | 730 bool have_wheel_event_handlers_ : 1; |
732 bool have_scroll_event_handlers_ : 1; | 731 bool have_scroll_event_handlers_ : 1; |
733 bool user_scrollable_horizontal_ : 1; | 732 bool user_scrollable_horizontal_ : 1; |
734 bool user_scrollable_vertical_ : 1; | 733 bool user_scrollable_vertical_ : 1; |
735 bool is_root_for_isolated_group_ : 1; | 734 bool is_root_for_isolated_group_ : 1; |
736 bool is_container_for_fixed_position_layers_ : 1; | 735 bool is_container_for_fixed_position_layers_ : 1; |
737 bool is_drawable_ : 1; | 736 bool is_drawable_ : 1; |
738 bool draws_content_ : 1; | 737 bool draws_content_ : 1; |
739 bool hide_layer_and_subtree_ : 1; | 738 bool hide_layer_and_subtree_ : 1; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 std::vector<FrameTimingRequest> frame_timing_requests_; | 793 std::vector<FrameTimingRequest> frame_timing_requests_; |
795 bool frame_timing_requests_dirty_; | 794 bool frame_timing_requests_dirty_; |
796 bool is_hidden_from_property_trees_; | 795 bool is_hidden_from_property_trees_; |
797 | 796 |
798 DISALLOW_COPY_AND_ASSIGN(Layer); | 797 DISALLOW_COPY_AND_ASSIGN(Layer); |
799 }; | 798 }; |
800 | 799 |
801 } // namespace cc | 800 } // namespace cc |
802 | 801 |
803 #endif // CC_LAYERS_LAYER_H_ | 802 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |