From 98fa8948b771838261bfbd07a2de305b0ae027e7 Mon Sep 17 00:00:00 2001 From: "jamesr@chromium.org" Date: Sat, 1 Sep 2012 18:29:42 +0000 Subject: Make cc_unittests and webkit_compositor_unittests executable always To get these tests set up to run on the bots they need to be executables always. If use_libcc_for_compositor is 0 these targets won't run any tests, but they will still successfully run. TBR=joth@chromium.org (for stupid android_webview copyright script) BUG= Review URL: https://chromiumcodereview.appspot.com/10920056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154620 0039d316-1c4b-4281-b951-d872f2087c98 --- .../WebTransformAnimationCurveImpl.h | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 webkit/compositor_bindings/WebTransformAnimationCurveImpl.h (limited to 'webkit/compositor_bindings/WebTransformAnimationCurveImpl.h') diff --git a/webkit/compositor_bindings/WebTransformAnimationCurveImpl.h b/webkit/compositor_bindings/WebTransformAnimationCurveImpl.h new file mode 100644 index 0000000..b7d7018 --- /dev/null +++ b/webkit/compositor_bindings/WebTransformAnimationCurveImpl.h @@ -0,0 +1,42 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WebTransformAnimationCurveImpl_h +#define WebTransformAnimationCurveImpl_h + +#include +#include +#include + +namespace WebCore { +class CCAnimationCurve; +class CCKeyframedTransformAnimationCurve; +} + +namespace WebKit { + +class WebTransformAnimationCurveImpl : public WebTransformAnimationCurve { +public: + WebTransformAnimationCurveImpl(); + virtual ~WebTransformAnimationCurveImpl(); + + // WebAnimationCurve implementation. + virtual AnimationCurveType type() const OVERRIDE; + + // WebTransformAnimationCurve implementation. + virtual void add(const WebTransformKeyframe&) OVERRIDE; + virtual void add(const WebTransformKeyframe&, TimingFunctionType) OVERRIDE; + virtual void add(const WebTransformKeyframe&, double x1, double y1, double x2, double y2) OVERRIDE; + + virtual WebTransformationMatrix getValue(double time) const OVERRIDE; + + PassOwnPtr cloneToCCAnimationCurve() const; + +private: + OwnPtr m_curve; +}; + +} + +#endif // WebTransformAnimationCurveImpl_h -- cgit v1.1