OLD | NEW |
---|---|
(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 "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati ons.h" | |
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | |
11 | |
12 namespace cc { | |
13 class TransformOperations; | |
14 } | |
15 | |
16 namespace webkit { | |
17 | |
18 #if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL | |
19 class WebTransformOperationsImpl : public WebKit::WebTransformOperations { | |
20 public: | |
21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformOperationsImpl(); | |
22 virtual ~WebTransformOperationsImpl(); | |
23 | |
24 const cc::TransformOperations& AsTransformOperations() const; | |
25 | |
26 // Implementation of WebKit::WebTransformOperations methods | |
27 virtual bool canBlendWith( | |
28 const WebKit::WebTransformOperations& other) const OVERRIDE; | |
29 virtual void appendTranslate(double x, double y, double z) OVERRIDE; | |
30 virtual void appendRotate( | |
31 double x, double y, double z, double degrees) OVERRIDE; | |
32 virtual void appendScale(double x, double y, double z) OVERRIDE; | |
33 virtual void appendSkew(double x, double y) OVERRIDE; | |
34 virtual void appendPerspective(double depth) OVERRIDE; | |
35 virtual void appendMatrix(const WebKit::WebTransformationMatrix&) OVERRIDE; | |
36 virtual void appendIdentity() OVERRIDE; | |
37 virtual bool isIdentity() const OVERRIDE; | |
38 | |
39 private: | |
40 DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl); | |
41 | |
42 scoped_ptr<cc::TransformOperations> transform_operations_; | |
jamesr
2013/01/16 00:58:49
it's not a big deal, but is there a reason this is
ajuma
2013/01/16 15:36:54
Good point. Changed to a direct member variable no
| |
43 }; | |
44 #endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL | |
45 | |
46 } // namespace webkit | |
47 | |
48 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | |
OLD | NEW |