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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 501 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
502 | 502 |
503 bool user_scrollable(ScrollbarOrientation orientation) const; | 503 bool user_scrollable(ScrollbarOrientation orientation) const; |
504 | 504 |
505 void ApplySentScrollDeltasFromAbortedCommit(); | 505 void ApplySentScrollDeltasFromAbortedCommit(); |
506 | 506 |
507 void set_main_thread_scrolling_reasons( | 507 void set_main_thread_scrolling_reasons( |
508 uint32_t main_thread_scrolling_reasons) { | 508 uint32_t main_thread_scrolling_reasons) { |
509 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; | 509 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; |
510 } | 510 } |
511 | |
512 uint32_t main_thread_scrolling_reasons() const { | 511 uint32_t main_thread_scrolling_reasons() const { |
513 return main_thread_scrolling_reasons_; | 512 return main_thread_scrolling_reasons_; |
514 } | 513 } |
515 | |
516 bool should_scroll_on_main_thread() const { | 514 bool should_scroll_on_main_thread() const { |
517 return !!main_thread_scrolling_reasons_; | 515 return !!main_thread_scrolling_reasons_; |
518 } | 516 } |
519 | 517 |
520 void SetNonFastScrollableRegion(const Region& region) { | 518 void SetNonFastScrollableRegion(const Region& region) { |
521 non_fast_scrollable_region_ = region; | 519 non_fast_scrollable_region_ = region; |
522 } | 520 } |
523 const Region& non_fast_scrollable_region() const { | 521 const Region& non_fast_scrollable_region() const { |
524 return non_fast_scrollable_region_; | 522 return non_fast_scrollable_region_; |
525 } | 523 } |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 // If true, the layer or one of its descendants has a touch handler. | 884 // If true, the layer or one of its descendants has a touch handler. |
887 bool layer_or_descendant_has_touch_handler_; | 885 bool layer_or_descendant_has_touch_handler_; |
888 bool sorted_for_recursion_; | 886 bool sorted_for_recursion_; |
889 | 887 |
890 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 888 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
891 }; | 889 }; |
892 | 890 |
893 } // namespace cc | 891 } // namespace cc |
894 | 892 |
895 #endif // CC_LAYERS_LAYER_IMPL_H_ | 893 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |