| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_ANIMATION_ANIMATION_OBSERVER_H_ |
| 6 #define CC_ANIMATION_ANIMATION_OBSERVER_H_ |
| 7 |
| 8 #include "cc/animation/animation_export.h" |
| 9 #include "ui/gfx/geometry/scroll_offset.h" |
| 10 #include "ui/gfx/geometry/size_f.h" |
| 11 #include "ui/gfx/transform.h" |
| 12 |
| 13 namespace cc { |
| 14 |
| 15 class FilterOperations; |
| 16 class TransformOperations; |
| 17 |
| 18 class CC_ANIMATION_EXPORT AnimationObserver { |
| 19 public: |
| 20 virtual ~AnimationObserver() {} |
| 21 virtual void NotifyClientOpacityAnimated(float opacity, |
| 22 bool notify_active_elements, |
| 23 bool notify_pending_elements) {} |
| 24 virtual void NotifyClientTransformOperationsAnimated( |
| 25 const TransformOperations& operations, |
| 26 bool notify_active_elements, |
| 27 bool notify_pending_elements) {} |
| 28 virtual void NotifyClientFilterAnimated(const FilterOperations& filter, |
| 29 bool notify_active_elements, |
| 30 bool notify_pending_elements) {} |
| 31 virtual void NotifyClientScrollOffsetAnimated( |
| 32 const gfx::ScrollOffset& scroll_offset, |
| 33 bool notify_active_elements, |
| 34 bool notify_pending_elements) {} |
| 35 virtual void NotifyClientBoundsAnimated(const gfx::SizeF& size, |
| 36 bool notify_active_elements, |
| 37 bool notify_pending_elements) {} |
| 38 }; |
| 39 |
| 40 } // namespace cc |
| 41 |
| 42 #endif // CC_ANIMATION_ANIMATION_OBSERVER_H_ |
| OLD | NEW |