| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); | 424 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); |
| 425 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } | 425 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } |
| 426 | 426 |
| 427 void SetContentBounds(const gfx::Size& content_bounds); | 427 void SetContentBounds(const gfx::Size& content_bounds); |
| 428 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } | 428 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } |
| 429 | 429 |
| 430 float contents_scale_x() const { return draw_properties_.contents_scale_x; } | 430 float contents_scale_x() const { return draw_properties_.contents_scale_x; } |
| 431 float contents_scale_y() const { return draw_properties_.contents_scale_y; } | 431 float contents_scale_y() const { return draw_properties_.contents_scale_y; } |
| 432 void SetContentsScale(float contents_scale_x, float contents_scale_y); | 432 void SetContentsScale(float contents_scale_x, float contents_scale_y); |
| 433 | 433 |
| 434 bool IsExternalFlingActive() const; | 434 bool IsExternalScrollActive() const; |
| 435 | 435 |
| 436 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); | 436 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); |
| 437 void SetCurrentScrollOffsetFromDelegate( | 437 void SetCurrentScrollOffsetFromDelegate( |
| 438 const gfx::ScrollOffset& scroll_offset); | 438 const gfx::ScrollOffset& scroll_offset); |
| 439 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); | 439 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); |
| 440 // This method is similar to PushScrollOffsetFromMainThread but will cause the | 440 // This method is similar to PushScrollOffsetFromMainThread but will cause the |
| 441 // scroll offset given to clobber any scroll changes on the active tree in the | 441 // scroll offset given to clobber any scroll changes on the active tree in the |
| 442 // time until this value is pushed to the active tree. | 442 // time until this value is pushed to the active tree. |
| 443 void PushScrollOffsetFromMainThreadAndClobberActiveValue( | 443 void PushScrollOffsetFromMainThreadAndClobberActiveValue( |
| 444 const gfx::ScrollOffset& scroll_offset); | 444 const gfx::ScrollOffset& scroll_offset); |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 | 829 |
| 830 std::vector<FrameTimingRequest> frame_timing_requests_; | 830 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 831 bool frame_timing_requests_dirty_; | 831 bool frame_timing_requests_dirty_; |
| 832 | 832 |
| 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 } // namespace cc | 836 } // namespace cc |
| 837 | 837 |
| 838 #endif // CC_LAYERS_LAYER_IMPL_H_ | 838 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |