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

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: 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 {
jamesr 2013/01/15 06:23:01 you should put this in namespace 'webkit' - 'WebKi
ajuma 2013/01/15 19:24:30 Done.
17
18 #if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
19 class WebTransformOperationsImpl : public 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(const WebTransformOperations& other) const OVERRIDE;
28 virtual void appendTranslate(double x, double y, double z) OVERRIDE;
29 virtual void appendRotate(
30 double x, double y, double z, double degrees) OVERRIDE;
31 virtual void appendScale(double x, double y, double z) OVERRIDE;
32 virtual void appendSkew(double x, double y) OVERRIDE;
33 virtual void appendPerspective(double depth) OVERRIDE;
34 virtual void appendMatrix(const WebKit::WebTransformationMatrix&) OVERRIDE;
35 virtual void appendIdentity() OVERRIDE;
36 virtual bool isIdentity() const OVERRIDE;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl);
40
41 scoped_ptr<cc::TransformOperations> transform_operations_;
42 };
43 #endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL
44
45 } // namespace WebKit
46
47 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698