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

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

Issue 11745018: Not for review: Move the implementation of WebTransformOperations into chromium (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New approach 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 "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 class WebTransformOperationsImpl : public WebTransformOperations {
19 public:
20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformOperationsImpl();
21 virtual ~WebTransformOperationsImpl();
22
23 const cc::TransformOperations& AsTransformOperations() const;
24
25 // Implementation of WebKit::WebTransformOperations methods
26 virtual bool canBlendWith(const WebTransformOperations& other) const OVERRIDE;
27 virtual void appendTranslate(double x, double y, double z) OVERRIDE;
28 virtual void appendRotate(
29 double x, double y, double z, double degrees) OVERRIDE;
30 virtual void appendScale(double x, double y, double z) OVERRIDE;
31 virtual void appendSkew(double x, double y) OVERRIDE;
32 virtual void appendPerspective(double depth) OVERRIDE;
33 virtual void appendMatrix(const WebKit::WebTransformationMatrix&) OVERRIDE;
34 virtual void appendIdentity() OVERRIDE;
35 virtual bool isIdentity() const OVERRIDE;
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl);
39
40 scoped_ptr<cc::TransformOperations> transform_operations_;
41 };
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