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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } | 369 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } |
370 | 370 |
371 void SetContentBounds(const gfx::Size& content_bounds); | 371 void SetContentBounds(const gfx::Size& content_bounds); |
372 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } | 372 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } |
373 | 373 |
374 float contents_scale_x() const { return draw_properties_.contents_scale_x; } | 374 float contents_scale_x() const { return draw_properties_.contents_scale_x; } |
375 float contents_scale_y() const { return draw_properties_.contents_scale_y; } | 375 float contents_scale_y() const { return draw_properties_.contents_scale_y; } |
376 void SetContentsScale(float contents_scale_x, float contents_scale_y); | 376 void SetContentsScale(float contents_scale_x, float contents_scale_y); |
377 | 377 |
378 void SetScrollOffsetDelegate(ScrollOffsetDelegate* scroll_offset_delegate); | 378 void SetScrollOffsetDelegate(ScrollOffsetDelegate* scroll_offset_delegate); |
| 379 void OnDelegatedScrollOffsetChanged(); |
379 bool IsExternalFlingActive() const; | 380 bool IsExternalFlingActive() const; |
380 | 381 |
381 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); | 382 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); |
382 void SetScrollOffsetAndDelta(const gfx::ScrollOffset& scroll_offset, | 383 void SetScrollOffsetAndDelta(const gfx::ScrollOffset& scroll_offset, |
383 const gfx::Vector2dF& scroll_delta); | 384 const gfx::Vector2dF& scroll_delta); |
384 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } | 385 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } |
385 | 386 |
386 gfx::ScrollOffset MaxScrollOffset() const; | 387 gfx::ScrollOffset MaxScrollOffset() const; |
387 gfx::Vector2dF ClampScrollToMaxScrollOffset(); | 388 gfx::Vector2dF ClampScrollToMaxScrollOffset(); |
388 void SetScrollbarPosition(ScrollbarLayerImplBase* scrollbar_layer, | 389 void SetScrollbarPosition(ScrollbarLayerImplBase* scrollbar_layer, |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 DrawProperties<LayerImpl> draw_properties_; | 708 DrawProperties<LayerImpl> draw_properties_; |
708 | 709 |
709 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 710 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
710 | 711 |
711 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 712 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
712 }; | 713 }; |
713 | 714 |
714 } // namespace cc | 715 } // namespace cc |
715 | 716 |
716 #endif // CC_LAYERS_LAYER_IMPL_H_ | 717 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |