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

Side by Side Diff: cc/test/animation_test_common.h

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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/scheduler/texture_uploader_unittest.cc ('k') | cc/test/fake_layer_tree_host_client.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TEST_ANIMATION_TEST_COMMON_H_ 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_
6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_
7 7
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
(...skipping 15 matching lines...) Expand all
26 virtual double Duration() const OVERRIDE; 26 virtual double Duration() const OVERRIDE;
27 virtual float GetValue(double now) const OVERRIDE; 27 virtual float GetValue(double now) const OVERRIDE;
28 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE; 28 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE;
29 29
30 private: 30 private:
31 double duration_; 31 double duration_;
32 }; 32 };
33 33
34 class FakeTransformTransition : public TransformAnimationCurve { 34 class FakeTransformTransition : public TransformAnimationCurve {
35 public: 35 public:
36 FakeTransformTransition(double duration); 36 explicit FakeTransformTransition(double duration);
37 virtual ~FakeTransformTransition(); 37 virtual ~FakeTransformTransition();
38 38
39 virtual double Duration() const OVERRIDE; 39 virtual double Duration() const OVERRIDE;
40 virtual gfx::Transform GetValue(double time) const OVERRIDE; 40 virtual gfx::Transform GetValue(double time) const OVERRIDE;
41 41
42 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE; 42 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE;
43 43
44 private: 44 private:
45 double duration_; 45 double duration_;
46 }; 46 };
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 int delta_y); 108 int delta_y);
109 109
110 int AddAnimatedTransformToLayer(LayerImpl* layer, 110 int AddAnimatedTransformToLayer(LayerImpl* layer,
111 double duration, 111 double duration,
112 int delta_x, 112 int delta_x,
113 int delta_y); 113 int delta_y);
114 114
115 } // namespace cc 115 } // namespace cc
116 116
117 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 117 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/scheduler/texture_uploader_unittest.cc ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698