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

Side by Side Diff: cc/blink/web_to_cc_animation_delegate_adapter.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
« no previous file with comments | « cc/animation/target_property.cc ('k') | cc/blink/web_to_cc_animation_delegate_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ 5 #ifndef CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
6 #define CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ 6 #define CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebCompositorAnimationDelegate; 13 class WebCompositorAnimationDelegate;
14 } 14 }
15 15
16 namespace cc_blink { 16 namespace cc_blink {
17 17
18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { 18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate {
19 public: 19 public:
20 explicit WebToCCAnimationDelegateAdapter( 20 explicit WebToCCAnimationDelegateAdapter(
21 blink::WebCompositorAnimationDelegate* delegate); 21 blink::WebCompositorAnimationDelegate* delegate);
22 22
23 private: 23 private:
24 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 24 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
25 cc::Animation::TargetProperty target_property, 25 cc::TargetProperty::Type target_property,
26 int group) override; 26 int group) override;
27 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 27 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
28 cc::Animation::TargetProperty target_property, 28 cc::TargetProperty::Type target_property,
29 int group) override; 29 int group) override;
30 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 30 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
31 cc::Animation::TargetProperty target_property, 31 cc::TargetProperty::Type target_property,
32 int group) override; 32 int group) override;
33 33
34 blink::WebCompositorAnimationDelegate* delegate_; 34 blink::WebCompositorAnimationDelegate* delegate_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); 36 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter);
37 }; 37 };
38 38
39 } // namespace cc_blink 39 } // namespace cc_blink
40 40
41 #endif // CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ 41 #endif // CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
OLDNEW
« no previous file with comments | « cc/animation/target_property.cc ('k') | cc/blink/web_to_cc_animation_delegate_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698