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

Side by Side Diff: cc/blink/web_to_cc_animation_delegate_adapter.cc

Issue 421503002: Re-introduce forward declaration of WebCompositorAnimation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/blink/web_to_cc_animation_delegate_adapter.h ('k') | no next file » | 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 #include "cc/blink/web_to_cc_animation_delegate_adapter.h" 5 #include "cc/blink/web_to_cc_animation_delegate_adapter.h"
6 #include "third_party/WebKit/public/platform/WebCompositorAnimationDelegate.h"
6 7
7 namespace cc_blink { 8 namespace cc_blink {
8 9
9 WebToCCAnimationDelegateAdapter::WebToCCAnimationDelegateAdapter( 10 WebToCCAnimationDelegateAdapter::WebToCCAnimationDelegateAdapter(
10 blink::WebCompositorAnimationDelegate* delegate) 11 blink::WebCompositorAnimationDelegate* delegate)
11 : delegate_(delegate) { 12 : delegate_(delegate) {
12 } 13 }
13 14
14 void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted( 15 void WebToCCAnimationDelegateAdapter::NotifyAnimationStarted(
15 base::TimeTicks monotonic_time, 16 base::TimeTicks monotonic_time,
16 cc::Animation::TargetProperty target_property) { 17 cc::Animation::TargetProperty target_property) {
17 delegate_->notifyAnimationStarted( 18 delegate_->notifyAnimationStarted(
18 (monotonic_time - base::TimeTicks()).InSecondsF(), 19 (monotonic_time - base::TimeTicks()).InSecondsF(),
19 static_cast<blink::WebCompositorAnimation::TargetProperty>( 20 static_cast<blink::WebCompositorAnimation::TargetProperty>(
20 target_property)); 21 target_property));
21 } 22 }
22 23
23 void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished( 24 void WebToCCAnimationDelegateAdapter::NotifyAnimationFinished(
24 base::TimeTicks monotonic_time, 25 base::TimeTicks monotonic_time,
25 cc::Animation::TargetProperty target_property) { 26 cc::Animation::TargetProperty target_property) {
26 delegate_->notifyAnimationFinished( 27 delegate_->notifyAnimationFinished(
27 (monotonic_time - base::TimeTicks()).InSecondsF(), 28 (monotonic_time - base::TimeTicks()).InSecondsF(),
28 static_cast<blink::WebCompositorAnimation::TargetProperty>( 29 static_cast<blink::WebCompositorAnimation::TargetProperty>(
29 target_property)); 30 target_property));
30 } 31 }
31 32
32 } // namespace cc_blink 33 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_to_cc_animation_delegate_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698