| Index: cc/animation/animation_observer.h
|
| diff --git a/cc/animation/animation_observer.h b/cc/animation/animation_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4d5c650ce4e0e8fc1f24c4027ee5788ec28c8801
|
| --- /dev/null
|
| +++ b/cc/animation/animation_observer.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CC_ANIMATION_ANIMATION_OBSERVER_H_
|
| +#define CC_ANIMATION_ANIMATION_OBSERVER_H_
|
| +
|
| +#include "cc/animation/animation_export.h"
|
| +#include "ui/gfx/geometry/scroll_offset.h"
|
| +#include "ui/gfx/geometry/size_f.h"
|
| +#include "ui/gfx/transform.h"
|
| +
|
| +namespace cc {
|
| +
|
| +class FilterOperations;
|
| +class TransformOperations;
|
| +
|
| +class CC_ANIMATION_EXPORT AnimationObserver {
|
| + public:
|
| + virtual ~AnimationObserver() {}
|
| + virtual void NotifyClientOpacityAnimated(float opacity,
|
| + bool notify_active_elements,
|
| + bool notify_pending_elements) {}
|
| + virtual void NotifyClientTransformOperationsAnimated(
|
| + const TransformOperations& operations,
|
| + bool notify_active_elements,
|
| + bool notify_pending_elements) {}
|
| + virtual void NotifyClientFilterAnimated(const FilterOperations& filter,
|
| + bool notify_active_elements,
|
| + bool notify_pending_elements) {}
|
| + virtual void NotifyClientScrollOffsetAnimated(
|
| + const gfx::ScrollOffset& scroll_offset,
|
| + bool notify_active_elements,
|
| + bool notify_pending_elements) {}
|
| + virtual void NotifyClientBoundsAnimated(const gfx::SizeF& size,
|
| + bool notify_active_elements,
|
| + bool notify_pending_elements) {}
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_ANIMATION_ANIMATION_OBSERVER_H_
|
|
|