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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); | 423 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); |
424 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } | 424 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } |
425 | 425 |
426 void SetContentBounds(const gfx::Size& content_bounds); | 426 void SetContentBounds(const gfx::Size& content_bounds); |
427 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } | 427 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } |
428 | 428 |
429 float contents_scale_x() const { return draw_properties_.contents_scale_x; } | 429 float contents_scale_x() const { return draw_properties_.contents_scale_x; } |
430 float contents_scale_y() const { return draw_properties_.contents_scale_y; } | 430 float contents_scale_y() const { return draw_properties_.contents_scale_y; } |
431 void SetContentsScale(float contents_scale_x, float contents_scale_y); | 431 void SetContentsScale(float contents_scale_x, float contents_scale_y); |
432 | 432 |
433 bool IsExternalFlingActive() const; | 433 bool IsExternalScrollActive() const; |
434 | 434 |
435 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); | 435 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); |
436 void SetCurrentScrollOffsetFromDelegate( | 436 void SetCurrentScrollOffsetFromDelegate( |
437 const gfx::ScrollOffset& scroll_offset); | 437 const gfx::ScrollOffset& scroll_offset); |
438 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); | 438 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); |
439 // This method is similar to PushScrollOffsetFromMainThread but will cause the | 439 // This method is similar to PushScrollOffsetFromMainThread but will cause the |
440 // scroll offset given to clobber any scroll changes on the active tree in the | 440 // scroll offset given to clobber any scroll changes on the active tree in the |
441 // time until this value is pushed to the active tree. | 441 // time until this value is pushed to the active tree. |
442 void PushScrollOffsetFromMainThreadAndClobberActiveValue( | 442 void PushScrollOffsetFromMainThreadAndClobberActiveValue( |
443 const gfx::ScrollOffset& scroll_offset); | 443 const gfx::ScrollOffset& scroll_offset); |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 bool visited_; | 847 bool visited_; |
848 bool layer_or_descendant_is_drawn_; | 848 bool layer_or_descendant_is_drawn_; |
849 bool sorted_for_recursion_; | 849 bool sorted_for_recursion_; |
850 | 850 |
851 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 851 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
852 }; | 852 }; |
853 | 853 |
854 } // namespace cc | 854 } // namespace cc |
855 | 855 |
856 #endif // CC_LAYERS_LAYER_IMPL_H_ | 856 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |