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

Side by Side Diff: sky/viewer/cc/web_to_cc_animation_delegate_adapter.h

Issue 752683002: Break Sky's dependency on cc (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKY_VIEWER_CC_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
6 #define SKY_VIEWER_CC_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "cc/animation/animation_delegate.h"
11
12 namespace blink {
13 class WebCompositorAnimationDelegate;
14 }
15
16 namespace sky_viewer_cc {
17
18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate {
19 public:
20 explicit WebToCCAnimationDelegateAdapter(
21 blink::WebCompositorAnimationDelegate* delegate);
22
23 private:
24 virtual void NotifyAnimationStarted(
25 base::TimeTicks monotonic_time,
26 cc::Animation::TargetProperty target_property,
27 int group) override;
28 virtual void NotifyAnimationFinished(
29 base::TimeTicks monotonic_time,
30 cc::Animation::TargetProperty target_property,
31 int group) override;
32
33 blink::WebCompositorAnimationDelegate* delegate_;
34
35 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter);
36 };
37
38 } // namespace sky_viewer_cc
39
40 #endif // SKY_VIEWER_CC_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
OLDNEW
« no previous file with comments | « sky/viewer/cc/web_layer_impl_fixed_bounds_unittest.cc ('k') | sky/viewer/cc/web_to_cc_animation_delegate_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698