OLD | NEW |
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 #include "webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapt
er.h" | 5 #include "webkit/renderer/compositor_bindings/web_to_cc_animation_delegate_adapt
er.h" |
6 | 6 |
7 #include "third_party/WebKit/public/platform/WebAnimationDelegate.h" | 7 #include "third_party/WebKit/public/platform/WebAnimationDelegate.h" |
8 | 8 |
9 namespace webkit { | 9 namespace webkit { |
10 | 10 |
11 WebToCCAnimationDelegateAdapter::WebToCCAnimationDelegateAdapter( | 11 WebToCCAnimationDelegateAdapter::WebToCCAnimationDelegateAdapter( |
12 WebKit::WebAnimationDelegate* delegate) | 12 blink::WebAnimationDelegate* delegate) |
13 : delegate_(delegate) {} | 13 : delegate_(delegate) {} |
14 | 14 |
15 void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted(double time) { | 15 void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted(double time) { |
16 delegate_->notifyAnimationStarted(time); | 16 delegate_->notifyAnimationStarted(time); |
17 } | 17 } |
18 | 18 |
19 void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(double time) { | 19 void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(double time) { |
20 delegate_->notifyAnimationFinished(time); | 20 delegate_->notifyAnimationFinished(time); |
21 } | 21 } |
22 | 22 |
23 } // namespace webkit | 23 } // namespace webkit |
OLD | NEW |