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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); | 264 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); |
265 void SetScrollCompensationAdjustment( | 265 void SetScrollCompensationAdjustment( |
266 const gfx::Vector2dF& scroll_compensation_adjustment); | 266 const gfx::Vector2dF& scroll_compensation_adjustment); |
267 gfx::Vector2dF ScrollCompensationAdjustment() const; | 267 gfx::Vector2dF ScrollCompensationAdjustment() const; |
268 | 268 |
269 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } | 269 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } |
270 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset); | 270 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset); |
271 | 271 |
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 Layer* scroll_clip_layer() const; |
274 | 275 |
275 void SetUserScrollable(bool horizontal, bool vertical); | 276 void SetUserScrollable(bool horizontal, bool vertical); |
276 bool user_scrollable_horizontal() const { | 277 bool user_scrollable_horizontal() const { |
277 return user_scrollable_horizontal_; | 278 return user_scrollable_horizontal_; |
278 } | 279 } |
279 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } | 280 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } |
280 | 281 |
281 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); | 282 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); |
282 void ClearMainThreadScrollingReasons(); | 283 void ClearMainThreadScrollingReasons(); |
283 uint32_t main_thread_scrolling_reasons() const { | 284 uint32_t main_thread_scrolling_reasons() const { |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 791 |
791 std::vector<FrameTimingRequest> frame_timing_requests_; | 792 std::vector<FrameTimingRequest> frame_timing_requests_; |
792 bool frame_timing_requests_dirty_; | 793 bool frame_timing_requests_dirty_; |
793 | 794 |
794 DISALLOW_COPY_AND_ASSIGN(Layer); | 795 DISALLOW_COPY_AND_ASSIGN(Layer); |
795 }; | 796 }; |
796 | 797 |
797 } // namespace cc | 798 } // namespace cc |
798 | 799 |
799 #endif // CC_LAYERS_LAYER_H_ | 800 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |