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

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

Issue 11876016: Define cc::TransformOperations and webkit::WebTransformOperationsImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Put TransformOperation into its own header Created 7 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/transform_operations.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati ons.h"
11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
12
13 namespace webkit {
14
15 #if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
16 class WebTransformOperationsImpl : public WebKit::WebTransformOperations {
17 public:
18 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformOperationsImpl();
19 virtual ~WebTransformOperationsImpl();
20
21 const cc::TransformOperations& AsTransformOperations() const;
22
23 // Implementation of WebKit::WebTransformOperations methods
24 virtual bool canBlendWith(
25 const WebKit::WebTransformOperations& other) const OVERRIDE;
26 virtual void appendTranslate(double x, double y, double z) OVERRIDE;
27 virtual void appendRotate(
28 double x, double y, double z, double degrees) OVERRIDE;
29 virtual void appendScale(double x, double y, double z) OVERRIDE;
30 virtual void appendSkew(double x, double y) OVERRIDE;
31 virtual void appendPerspective(double depth) OVERRIDE;
32 virtual void appendMatrix(const WebKit::WebTransformationMatrix&) OVERRIDE;
33 virtual void appendIdentity() OVERRIDE;
34 virtual bool isIdentity() const OVERRIDE;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl);
38
39 cc::TransformOperations transform_operations_;
40 };
41 #endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
42
43 } // namespace webkit
44
45 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698