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

Side by Side Diff: webkit/compositor_bindings/web_animation_impl.h

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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
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 WebAnimationImpl_h 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
6 #define WebAnimationImpl_h 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h"
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
11 11
12 namespace cc { class Animation; } 12 namespace cc { class Animation; }
13 13
14 namespace WebKit { 14 namespace WebKit { class WebAnimationCurve; }
15 class WebAnimationCurve;
16 15
17 class WebAnimationImpl : public WebAnimation { 16 namespace webkit {
17
18 class WebAnimationImpl : public WebKit::WebAnimation {
18 public: 19 public:
19 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(const WebAnimationCurve&, 20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(
20 TargetProperty, 21 const WebKit::WebAnimationCurve& curve,
21 int animation_id, 22 TargetProperty target,
22 int group_id = 0); 23 int animation_id,
24 int group_id);
23 virtual ~WebAnimationImpl(); 25 virtual ~WebAnimationImpl();
24 26
25 // WebAnimation implementation 27 // WebKit::WebAnimation implementation
26 virtual int id(); 28 virtual int id();
27 virtual TargetProperty targetProperty() const; 29 virtual TargetProperty targetProperty() const;
28 virtual int iterations() const; 30 virtual int iterations() const;
29 virtual void setIterations(int); 31 virtual void setIterations(int iterations);
30 virtual double startTime() const; 32 virtual double startTime() const;
31 virtual void setStartTime(double monotonic_time); 33 virtual void setStartTime(double monotonic_time);
32 virtual double timeOffset() const; 34 virtual double timeOffset() const;
33 virtual void setTimeOffset(double monotonic_time); 35 virtual void setTimeOffset(double monotonic_time);
34 virtual bool alternatesDirection() const; 36 virtual bool alternatesDirection() const;
35 virtual void setAlternatesDirection(bool); 37 virtual void setAlternatesDirection(bool alternates);
36 38
37 scoped_ptr<cc::Animation> cloneToAnimation(); 39 scoped_ptr<cc::Animation> CloneToAnimation();
38 40
39 private: 41 private:
40 scoped_ptr<cc::Animation> animation_; 42 scoped_ptr<cc::Animation> animation_;
43
44 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl);
41 }; 45 };
42 46
43 } 47 } // namespace webkit
44 48
45 #endif // WebAnimationImpl_h 49 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_animation_curve_common.cc ('k') | webkit/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698