| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 434 |
| 435 // Returns the delta of the scroll that was outside of the bounds of the | 435 // Returns the delta of the scroll that was outside of the bounds of the |
| 436 // initial scroll | 436 // initial scroll |
| 437 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll); | 437 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll); |
| 438 | 438 |
| 439 void SetScrollClipLayer(int scroll_clip_layer_id); | 439 void SetScrollClipLayer(int scroll_clip_layer_id); |
| 440 int scroll_clip_layer_id() const { return scroll_clip_layer_id_; } | 440 int scroll_clip_layer_id() const { return scroll_clip_layer_id_; } |
| 441 LayerImpl* scroll_clip_layer() const; | 441 LayerImpl* scroll_clip_layer() const; |
| 442 bool scrollable() const; | 442 bool scrollable() const; |
| 443 | 443 |
| 444 void set_user_scrollable_horizontal(bool scrollable) { | 444 void set_user_scrollable_horizontal(bool scrollable); |
| 445 user_scrollable_horizontal_ = scrollable; | |
| 446 } | |
| 447 bool user_scrollable_horizontal() const { | 445 bool user_scrollable_horizontal() const { |
| 448 return user_scrollable_horizontal_; | 446 return user_scrollable_horizontal_; |
| 449 } | 447 } |
| 450 void set_user_scrollable_vertical(bool scrollable) { | 448 void set_user_scrollable_vertical(bool scrollable); |
| 451 user_scrollable_vertical_ = scrollable; | |
| 452 } | |
| 453 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 449 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
| 454 | 450 |
| 455 bool user_scrollable(ScrollbarOrientation orientation) const; | 451 bool user_scrollable(ScrollbarOrientation orientation) const; |
| 456 | 452 |
| 457 void set_main_thread_scrolling_reasons( | 453 void set_main_thread_scrolling_reasons( |
| 458 uint32_t main_thread_scrolling_reasons); | 454 uint32_t main_thread_scrolling_reasons); |
| 459 uint32_t main_thread_scrolling_reasons() const { | 455 uint32_t main_thread_scrolling_reasons() const { |
| 460 return main_thread_scrolling_reasons_; | 456 return main_thread_scrolling_reasons_; |
| 461 } | 457 } |
| 462 bool should_scroll_on_main_thread() const { | 458 bool should_scroll_on_main_thread() const { |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 // If true, the layer or one of its descendants has a touch handler. | 781 // If true, the layer or one of its descendants has a touch handler. |
| 786 bool layer_or_descendant_has_touch_handler_; | 782 bool layer_or_descendant_has_touch_handler_; |
| 787 bool sorted_for_recursion_; | 783 bool sorted_for_recursion_; |
| 788 | 784 |
| 789 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 785 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 790 }; | 786 }; |
| 791 | 787 |
| 792 } // namespace cc | 788 } // namespace cc |
| 793 | 789 |
| 794 #endif // CC_LAYERS_LAYER_IMPL_H_ | 790 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |