| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 float top_controls_height() const { return top_controls_height_; } | 419 float top_controls_height() const { return top_controls_height_; } |
| 420 void PushTopControlsFromMainThread(float top_controls_shown_ratio); | 420 void PushTopControlsFromMainThread(float top_controls_shown_ratio); |
| 421 | 421 |
| 422 void SetPendingPageScaleAnimation( | 422 void SetPendingPageScaleAnimation( |
| 423 std::unique_ptr<PendingPageScaleAnimation> pending_animation); | 423 std::unique_ptr<PendingPageScaleAnimation> pending_animation); |
| 424 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); | 424 std::unique_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); |
| 425 | 425 |
| 426 void DidUpdateScrollOffset(int layer_id, int transform_id); | 426 void DidUpdateScrollOffset(int layer_id, int transform_id); |
| 427 void DidUpdateScrollState(int layer_id); | 427 void DidUpdateScrollState(int layer_id); |
| 428 | 428 |
| 429 bool IsAnimatingFilterProperty(const LayerImpl* layer) const; | |
| 430 bool IsAnimatingOpacityProperty(const LayerImpl* layer) const; | |
| 431 bool IsAnimatingTransformProperty(const LayerImpl* layer) const; | |
| 432 | |
| 433 bool HasPotentiallyRunningFilterAnimation(const LayerImpl* layer) const; | |
| 434 bool HasPotentiallyRunningOpacityAnimation(const LayerImpl* layer) const; | |
| 435 bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const; | |
| 436 | |
| 437 bool HasAnyAnimationTargetingProperty(const LayerImpl* layer, | |
| 438 TargetProperty::Type property) const; | |
| 439 | |
| 440 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; | |
| 441 bool HasOnlyTranslationTransforms(const LayerImpl* layer) const; | |
| 442 | |
| 443 bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const; | |
| 444 bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const; | |
| 445 | |
| 446 bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const; | |
| 447 bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const; | |
| 448 bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const; | |
| 449 | |
| 450 bool FilterAnimationBoundsForBox(const LayerImpl* layer, | |
| 451 const gfx::BoxF& box, | |
| 452 gfx::BoxF* bounds) const; | |
| 453 bool TransformAnimationBoundsForBox(const LayerImpl* layer, | |
| 454 const gfx::BoxF& box, | |
| 455 gfx::BoxF* bounds) const; | |
| 456 void ScrollAnimationAbort(bool needs_completion); | 429 void ScrollAnimationAbort(bool needs_completion); |
| 457 | 430 |
| 458 bool have_scroll_event_handlers() const { | 431 bool have_scroll_event_handlers() const { |
| 459 return have_scroll_event_handlers_; | 432 return have_scroll_event_handlers_; |
| 460 } | 433 } |
| 461 void set_have_scroll_event_handlers(bool have_event_handlers) { | 434 void set_have_scroll_event_handlers(bool have_event_handlers) { |
| 462 have_scroll_event_handlers_ = have_event_handlers; | 435 have_scroll_event_handlers_ = have_event_handlers; |
| 463 } | 436 } |
| 464 | 437 |
| 465 EventListenerProperties event_listener_properties( | 438 EventListenerProperties event_listener_properties( |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 559 |
| 587 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 560 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 588 | 561 |
| 589 private: | 562 private: |
| 590 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 563 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 591 }; | 564 }; |
| 592 | 565 |
| 593 } // namespace cc | 566 } // namespace cc |
| 594 | 567 |
| 595 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 568 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |