| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 void set_user_scrollable_horizontal(bool scrollable); | 373 void set_user_scrollable_horizontal(bool scrollable); |
| 374 bool user_scrollable_horizontal() const { | 374 bool user_scrollable_horizontal() const { |
| 375 return user_scrollable_horizontal_; | 375 return user_scrollable_horizontal_; |
| 376 } | 376 } |
| 377 void set_user_scrollable_vertical(bool scrollable); | 377 void set_user_scrollable_vertical(bool scrollable); |
| 378 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 378 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
| 379 | 379 |
| 380 bool user_scrollable(ScrollbarOrientation orientation) const; | 380 bool user_scrollable(ScrollbarOrientation orientation) const; |
| 381 | 381 |
| 382 void set_main_thread_scrolling_reasons( | 382 void set_main_thread_scrolling_reasons( |
| 383 uint32_t main_thread_scrolling_reasons); | 383 uint32_t main_thread_scrolling_reasons) { |
| 384 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; |
| 385 } |
| 384 uint32_t main_thread_scrolling_reasons() const { | 386 uint32_t main_thread_scrolling_reasons() const { |
| 385 return main_thread_scrolling_reasons_; | 387 return main_thread_scrolling_reasons_; |
| 386 } | 388 } |
| 387 | 389 |
| 388 void SetNonFastScrollableRegion(const Region& region) { | 390 void SetNonFastScrollableRegion(const Region& region) { |
| 389 non_fast_scrollable_region_ = region; | 391 non_fast_scrollable_region_ = region; |
| 390 } | 392 } |
| 391 const Region& non_fast_scrollable_region() const { | 393 const Region& non_fast_scrollable_region() const { |
| 392 return non_fast_scrollable_region_; | 394 return non_fast_scrollable_region_; |
| 393 } | 395 } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 | 653 |
| 652 bool scrolls_drawn_descendant_; | 654 bool scrolls_drawn_descendant_; |
| 653 bool has_will_change_transform_hint_; | 655 bool has_will_change_transform_hint_; |
| 654 | 656 |
| 655 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 657 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 656 }; | 658 }; |
| 657 | 659 |
| 658 } // namespace cc | 660 } // namespace cc |
| 659 | 661 |
| 660 #endif // CC_LAYERS_LAYER_IMPL_H_ | 662 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |