Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1844)

Unified Diff: cc/animation/animation_observer.h

Issue 2966793002: NOT FOR REVIEW - convert to cc animation
Patch Set: switch to transform operations Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_curve.cc ('k') | cc/animation/animation_player.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/animation/animation_curve.cc ('k') | cc/animation/animation_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698