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

Unified Diff: public/platform/WebAnimationDelegate.h

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 10 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 | « Source/web/tests/ImageLayerChromiumTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebAnimationDelegate.h
diff --git a/public/platform/WebAnimationDelegate.h b/public/platform/WebAnimationDelegate.h
index e233e5db69bf11b7f16f433d82d7eb5651dd1458..940f1434db7394804f8d2233d27354fb2b71721b 100644
--- a/public/platform/WebAnimationDelegate.h
+++ b/public/platform/WebAnimationDelegate.h
@@ -26,17 +26,26 @@
#define WebAnimationDelegate_h
#include "WebAnimation.h"
+#include "WebCommon.h"
#define WEB_ANIMATION_DELEGATE_TAKES_MONOTONIC_TIME 1
namespace blink {
-class WebAnimationDelegate {
+class BLINK_PLATFORM_EXPORT WebAnimationDelegate {
public:
- // FIXME: Remove wallClockTime once the legacy implementation of CSS
- // animations and transitions is removed.
- virtual void notifyAnimationStarted(double wallClockTime, double monotonicTime, WebAnimation::TargetProperty) = 0;
- virtual void notifyAnimationFinished(double wallClockTime, double monotonicTime, WebAnimation::TargetProperty) = 0;
+ // FIXME: Remove wallClockTime API after the following file is updated;
+ // webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.cc
+ void notifyAnimationStarted(double wallClockTime, double monotonicTime, WebAnimation::TargetProperty prop)
+ {
+ notifyAnimationStarted(monotonicTime, prop);
+ }
+ void notifyAnimationFinished(double wallClockTime, double monotonicTime, WebAnimation::TargetProperty prop)
+ {
+ notifyAnimationFinished(monotonicTime, prop);
+ }
+ virtual void notifyAnimationStarted(double monotonicTime, WebAnimation::TargetProperty) = 0;
+ virtual void notifyAnimationFinished(double monotonicTime, WebAnimation::TargetProperty) = 0;
};
} // namespace blink
« no previous file with comments | « Source/web/tests/ImageLayerChromiumTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698