| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 void set_user_scrollable_vertical(bool scrollable) { | 486 void set_user_scrollable_vertical(bool scrollable) { |
| 487 user_scrollable_vertical_ = scrollable; | 487 user_scrollable_vertical_ = scrollable; |
| 488 } | 488 } |
| 489 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 489 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
| 490 | 490 |
| 491 bool user_scrollable(ScrollbarOrientation orientation) const; | 491 bool user_scrollable(ScrollbarOrientation orientation) const; |
| 492 | 492 |
| 493 void ApplySentScrollDeltasFromAbortedCommit(); | 493 void ApplySentScrollDeltasFromAbortedCommit(); |
| 494 | 494 |
| 495 void set_main_thread_scrolling_reasons( | 495 void set_main_thread_scrolling_reasons( |
| 496 InputHandler::MainThreadScrollingReason 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) { | 503 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers) { |
| 504 have_wheel_event_handlers_ = have_wheel_event_handlers; | 504 have_wheel_event_handlers_ = have_wheel_event_handlers; |
| 505 } | 505 } |
| 506 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } | 506 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 // Properties dynamically changeable on active tree. | 767 // Properties dynamically changeable on active tree. |
| 768 scoped_refptr<SyncedScrollOffset> scroll_offset_; | 768 scoped_refptr<SyncedScrollOffset> scroll_offset_; |
| 769 gfx::Vector2dF bounds_delta_; | 769 gfx::Vector2dF bounds_delta_; |
| 770 | 770 |
| 771 // Properties synchronized from the associated Layer. | 771 // Properties synchronized from the associated Layer. |
| 772 gfx::Point3F transform_origin_; | 772 gfx::Point3F transform_origin_; |
| 773 gfx::Size bounds_; | 773 gfx::Size bounds_; |
| 774 int scroll_clip_layer_id_; | 774 int scroll_clip_layer_id_; |
| 775 | 775 |
| 776 gfx::Vector2dF offset_to_transform_parent_; | 776 gfx::Vector2dF offset_to_transform_parent_; |
| 777 InputHandler::MainThreadScrollingReason main_thread_scrolling_reasons_; | 777 uint32_t main_thread_scrolling_reasons_; |
| 778 bool have_wheel_event_handlers_ : 1; | 778 bool have_wheel_event_handlers_ : 1; |
| 779 bool have_scroll_event_handlers_ : 1; | 779 bool have_scroll_event_handlers_ : 1; |
| 780 | 780 |
| 781 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big"); | 781 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big"); |
| 782 ScrollBlocksOn scroll_blocks_on_ : 3; | 782 ScrollBlocksOn scroll_blocks_on_ : 3; |
| 783 | 783 |
| 784 bool user_scrollable_horizontal_ : 1; | 784 bool user_scrollable_horizontal_ : 1; |
| 785 bool user_scrollable_vertical_ : 1; | 785 bool user_scrollable_vertical_ : 1; |
| 786 bool stacking_order_changed_ : 1; | 786 bool stacking_order_changed_ : 1; |
| 787 // Whether the "back" of this layer should draw. | 787 // Whether the "back" of this layer should draw. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 bool layer_or_descendant_has_input_handler_; | 896 bool layer_or_descendant_has_input_handler_; |
| 897 bool sorted_for_recursion_; | 897 bool sorted_for_recursion_; |
| 898 bool is_hidden_from_property_trees_; | 898 bool is_hidden_from_property_trees_; |
| 899 | 899 |
| 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 901 }; | 901 }; |
| 902 | 902 |
| 903 } // namespace cc | 903 } // namespace cc |
| 904 | 904 |
| 905 #endif // CC_LAYERS_LAYER_IMPL_H_ | 905 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |