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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CompositorAnimationPlayer_h 5 #ifndef CompositorAnimationPlayer_h
6 #define CompositorAnimationPlayer_h 6 #define CompositorAnimationPlayer_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/animation/animation.h" 10 #include "cc/animation/animation.h"
(...skipping 27 matching lines...) Expand all
38 void detachLayer(); 38 void detachLayer();
39 bool isLayerAttached() const; 39 bool isLayerAttached() const;
40 40
41 void addAnimation(CompositorAnimation*); 41 void addAnimation(CompositorAnimation*);
42 void removeAnimation(int animationId); 42 void removeAnimation(int animationId);
43 void pauseAnimation(int animationId, double timeOffset); 43 void pauseAnimation(int animationId, double timeOffset);
44 void abortAnimation(int animationId); 44 void abortAnimation(int animationId);
45 45
46 private: 46 private:
47 // cc::AnimationDelegate implementation. 47 // cc::AnimationDelegate implementation.
48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::Animation::Ta rgetProperty, int group) override; 48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override;
49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::Animation::T argetProperty, int group) override; 49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper ty::Type, int group) override;
50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::Animation::Ta rgetProperty, int group) override; 50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert y::Type, int group) override;
51 51
52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; 52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer;
53 WebCompositorAnimationDelegate* m_delegate; 53 WebCompositorAnimationDelegate* m_delegate;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // CompositorAnimationPlayer_h 58 #endif // CompositorAnimationPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698