| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // them from the other values. | 421 // them from the other values. |
| 422 | 422 |
| 423 void SetBounds(const gfx::Size& bounds); | 423 void SetBounds(const gfx::Size& bounds); |
| 424 gfx::Size bounds() const; | 424 gfx::Size bounds() const; |
| 425 // Like bounds() but doesn't snap to int. Lossy on giant pages (e.g. millions | 425 // Like bounds() but doesn't snap to int. Lossy on giant pages (e.g. millions |
| 426 // of pixels) due to use of single precision float. | 426 // of pixels) due to use of single precision float. |
| 427 gfx::SizeF BoundsForScrolling() const; | 427 gfx::SizeF BoundsForScrolling() const; |
| 428 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); | 428 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); |
| 429 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } | 429 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } |
| 430 | 430 |
| 431 bool IsExternalScrollActive() const; | |
| 432 | |
| 433 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); | 431 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); |
| 434 void SetCurrentScrollOffsetFromDelegate( | 432 void SetCurrentScrollOffsetFromDelegate( |
| 435 const gfx::ScrollOffset& scroll_offset); | 433 const gfx::ScrollOffset& scroll_offset); |
| 436 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); | 434 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); |
| 437 // This method is similar to PushScrollOffsetFromMainThread but will cause the | 435 // This method is similar to PushScrollOffsetFromMainThread but will cause the |
| 438 // scroll offset given to clobber any scroll changes on the active tree in the | 436 // scroll offset given to clobber any scroll changes on the active tree in the |
| 439 // time until this value is pushed to the active tree. | 437 // time until this value is pushed to the active tree. |
| 440 void PushScrollOffsetFromMainThreadAndClobberActiveValue( | 438 void PushScrollOffsetFromMainThreadAndClobberActiveValue( |
| 441 const gfx::ScrollOffset& scroll_offset); | 439 const gfx::ScrollOffset& scroll_offset); |
| 442 gfx::ScrollOffset PullDeltaForMainThread(); | 440 gfx::ScrollOffset PullDeltaForMainThread(); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 bool visited_; | 867 bool visited_; |
| 870 bool layer_or_descendant_is_drawn_; | 868 bool layer_or_descendant_is_drawn_; |
| 871 bool sorted_for_recursion_; | 869 bool sorted_for_recursion_; |
| 872 | 870 |
| 873 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 871 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 874 }; | 872 }; |
| 875 | 873 |
| 876 } // namespace cc | 874 } // namespace cc |
| 877 | 875 |
| 878 #endif // CC_LAYERS_LAYER_IMPL_H_ | 876 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |