| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 virtual void CalculateContentsScale(float ideal_contents_scale, | 342 virtual void CalculateContentsScale(float ideal_contents_scale, |
| 343 float device_scale_factor, | 343 float device_scale_factor, |
| 344 float page_scale_factor, | 344 float page_scale_factor, |
| 345 bool animating_transform_to_screen, | 345 bool animating_transform_to_screen, |
| 346 float* contents_scale_x, | 346 float* contents_scale_x, |
| 347 float* contents_scale_y, | 347 float* contents_scale_y, |
| 348 gfx::Size* content_bounds); | 348 gfx::Size* content_bounds); |
| 349 | 349 |
| 350 void SetScrollOffsetDelegate( | 350 void SetScrollOffsetDelegate( |
| 351 LayerScrollOffsetDelegate* scroll_offset_delegate); | 351 LayerScrollOffsetDelegate* scroll_offset_delegate); |
| 352 bool IsExternalFlingActive() const; | |
| 353 | 352 |
| 354 void SetScrollOffset(gfx::Vector2d scroll_offset); | 353 void SetScrollOffset(gfx::Vector2d scroll_offset); |
| 355 void SetScrollOffsetAndDelta(gfx::Vector2d scroll_offset, | 354 void SetScrollOffsetAndDelta(gfx::Vector2d scroll_offset, |
| 356 gfx::Vector2dF scroll_delta); | 355 gfx::Vector2dF scroll_delta); |
| 357 gfx::Vector2d scroll_offset() const { return scroll_offset_; } | 356 gfx::Vector2d scroll_offset() const { return scroll_offset_; } |
| 358 | 357 |
| 359 void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset); | 358 void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset); |
| 360 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; } | 359 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; } |
| 361 | 360 |
| 362 void SetScrollDelta(gfx::Vector2dF scroll_delta); | 361 void SetScrollDelta(gfx::Vector2dF scroll_delta); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // Group of properties that need to be computed based on the layer tree | 626 // Group of properties that need to be computed based on the layer tree |
| 628 // hierarchy before layers can be drawn. | 627 // hierarchy before layers can be drawn. |
| 629 DrawProperties<LayerImpl> draw_properties_; | 628 DrawProperties<LayerImpl> draw_properties_; |
| 630 | 629 |
| 631 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 630 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 632 }; | 631 }; |
| 633 | 632 |
| 634 } // namespace cc | 633 } // namespace cc |
| 635 | 634 |
| 636 #endif // CC_LAYERS_LAYER_IMPL_H_ | 635 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |