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

Side by Side Diff: webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapter.h

Issue 184433007: Remove wall time from NotifyAnimationStarted and NotifyAnimationFinished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_wall_time_step2
Patch Set: Fixing unittests for API update. Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER _H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER _H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER _H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER _H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
11 11
12 namespace blink { class WebAnimationDelegate; } 12 namespace blink { class WebAnimationDelegate; }
13 13
14 namespace webkit { 14 namespace webkit {
15 15
16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { 16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate {
17 public: 17 public:
18 explicit WebToCCAnimationDelegateAdapter( 18 explicit WebToCCAnimationDelegateAdapter(
19 blink::WebAnimationDelegate* delegate); 19 blink::WebAnimationDelegate* delegate);
20 20
21 private: 21 private:
22 virtual void NotifyAnimationStarted( 22 virtual void NotifyAnimationStarted(
23 double wall_clock_time,
24 base::TimeTicks monotonic_time, 23 base::TimeTicks monotonic_time,
25 cc::Animation::TargetProperty target_property) OVERRIDE; 24 cc::Animation::TargetProperty target_property) OVERRIDE;
26 virtual void NotifyAnimationFinished( 25 virtual void NotifyAnimationFinished(
27 double wall_clock_time,
28 base::TimeTicks monotonic_time, 26 base::TimeTicks monotonic_time,
29 cc::Animation::TargetProperty target_property) OVERRIDE; 27 cc::Animation::TargetProperty target_property) OVERRIDE;
30 28
31 blink::WebAnimationDelegate* delegate_; 29 blink::WebAnimationDelegate* delegate_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); 31 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter);
34 }; 32 };
35 33
36 } // namespace webkit 34 } // namespace webkit
37 35
38 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAP TER_H_ 36 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAP TER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698