| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 void SetScrollClipLayerId(int clip_layer_id); | 272 void SetScrollClipLayerId(int clip_layer_id); |
| 273 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } | 273 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } |
| 274 | 274 |
| 275 void SetUserScrollable(bool horizontal, bool vertical); | 275 void SetUserScrollable(bool horizontal, bool vertical); |
| 276 bool user_scrollable_horizontal() const { | 276 bool user_scrollable_horizontal() const { |
| 277 return user_scrollable_horizontal_; | 277 return user_scrollable_horizontal_; |
| 278 } | 278 } |
| 279 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 279 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
| 280 | 280 |
| 281 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); | 281 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); |
| 282 void ClearMainThreadScrollingReasons(); | 282 void ClearMainThreadScrollingReasons( |
| 283 uint32_t main_thread_scrolling_reasons_to_clear); |
| 283 uint32_t main_thread_scrolling_reasons() const { | 284 uint32_t main_thread_scrolling_reasons() const { |
| 284 return main_thread_scrolling_reasons_; | 285 return main_thread_scrolling_reasons_; |
| 285 } | 286 } |
| 286 bool should_scroll_on_main_thread() const { | 287 bool should_scroll_on_main_thread() const { |
| 287 return !!main_thread_scrolling_reasons_; | 288 return !!main_thread_scrolling_reasons_; |
| 288 } | 289 } |
| 289 | 290 |
| 290 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); | 291 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); |
| 291 const Region& non_fast_scrollable_region() const { | 292 const Region& non_fast_scrollable_region() const { |
| 292 return non_fast_scrollable_region_; | 293 return non_fast_scrollable_region_; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 | 781 |
| 781 std::vector<FrameTimingRequest> frame_timing_requests_; | 782 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 782 bool frame_timing_requests_dirty_; | 783 bool frame_timing_requests_dirty_; |
| 783 | 784 |
| 784 DISALLOW_COPY_AND_ASSIGN(Layer); | 785 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 785 }; | 786 }; |
| 786 | 787 |
| 787 } // namespace cc | 788 } // namespace cc |
| 788 | 789 |
| 789 #endif // CC_LAYERS_LAYER_H_ | 790 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |