| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void ApplySentScrollDeltasFromAbortedCommit(); | 493 void ApplySentScrollDeltasFromAbortedCommit(); |
| 494 | 494 |
| 495 void set_main_thread_scrolling_reasons( | 495 void set_main_thread_scrolling_reasons( |
| 496 uint32_t main_thread_scrolling_reasons) { | 496 uint32_t main_thread_scrolling_reasons) { |
| 497 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; | 497 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; |
| 498 } | 498 } |
| 499 bool should_scroll_on_main_thread() const { | 499 bool should_scroll_on_main_thread() const { |
| 500 return !!main_thread_scrolling_reasons_; | 500 return !!main_thread_scrolling_reasons_; |
| 501 } | 501 } |
| 502 | 502 |
| 503 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers) { | |
| 504 have_wheel_event_handlers_ = have_wheel_event_handlers; | |
| 505 } | |
| 506 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | |
| 507 | |
| 508 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers) { | 503 void SetHaveScrollEventHandlers(bool have_scroll_event_handlers) { |
| 509 have_scroll_event_handlers_ = have_scroll_event_handlers; | 504 have_scroll_event_handlers_ = have_scroll_event_handlers; |
| 510 } | 505 } |
| 511 bool have_scroll_event_handlers() const { | 506 bool have_scroll_event_handlers() const { |
| 512 return have_scroll_event_handlers_; | 507 return have_scroll_event_handlers_; |
| 513 } | 508 } |
| 514 | 509 |
| 515 void SetNonFastScrollableRegion(const Region& region) { | 510 void SetNonFastScrollableRegion(const Region& region) { |
| 516 non_fast_scrollable_region_ = region; | 511 non_fast_scrollable_region_ = region; |
| 517 } | 512 } |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 scoped_refptr<SyncedScrollOffset> scroll_offset_; | 763 scoped_refptr<SyncedScrollOffset> scroll_offset_; |
| 769 gfx::Vector2dF bounds_delta_; | 764 gfx::Vector2dF bounds_delta_; |
| 770 | 765 |
| 771 // Properties synchronized from the associated Layer. | 766 // Properties synchronized from the associated Layer. |
| 772 gfx::Point3F transform_origin_; | 767 gfx::Point3F transform_origin_; |
| 773 gfx::Size bounds_; | 768 gfx::Size bounds_; |
| 774 int scroll_clip_layer_id_; | 769 int scroll_clip_layer_id_; |
| 775 | 770 |
| 776 gfx::Vector2dF offset_to_transform_parent_; | 771 gfx::Vector2dF offset_to_transform_parent_; |
| 777 uint32_t main_thread_scrolling_reasons_; | 772 uint32_t main_thread_scrolling_reasons_; |
| 778 bool have_wheel_event_handlers_ : 1; | |
| 779 bool have_scroll_event_handlers_ : 1; | 773 bool have_scroll_event_handlers_ : 1; |
| 780 | 774 |
| 781 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big"); | 775 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big"); |
| 782 ScrollBlocksOn scroll_blocks_on_ : 3; | 776 ScrollBlocksOn scroll_blocks_on_ : 3; |
| 783 | 777 |
| 784 bool user_scrollable_horizontal_ : 1; | 778 bool user_scrollable_horizontal_ : 1; |
| 785 bool user_scrollable_vertical_ : 1; | 779 bool user_scrollable_vertical_ : 1; |
| 786 bool stacking_order_changed_ : 1; | 780 bool stacking_order_changed_ : 1; |
| 787 // Whether the "back" of this layer should draw. | 781 // Whether the "back" of this layer should draw. |
| 788 bool double_sided_ : 1; | 782 bool double_sided_ : 1; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 bool layer_or_descendant_has_input_handler_; | 890 bool layer_or_descendant_has_input_handler_; |
| 897 bool sorted_for_recursion_; | 891 bool sorted_for_recursion_; |
| 898 bool is_hidden_from_property_trees_; | 892 bool is_hidden_from_property_trees_; |
| 899 | 893 |
| 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 894 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 901 }; | 895 }; |
| 902 | 896 |
| 903 } // namespace cc | 897 } // namespace cc |
| 904 | 898 |
| 905 #endif // CC_LAYERS_LAYER_IMPL_H_ | 899 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |