 Chromium Code Reviews
 Chromium Code Reviews Issue 11876016:
  Define cc::TransformOperations and webkit::WebTransformOperationsImpl  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master
    
  
    Issue 11876016:
  Define cc::TransformOperations and webkit::WebTransformOperationsImpl  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master| Index: webkit/compositor_bindings/web_transform_operations_impl.h | 
| diff --git a/webkit/compositor_bindings/web_transform_operations_impl.h b/webkit/compositor_bindings/web_transform_operations_impl.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..4e0383bc721c74923f65aff712866b3c1d292345 | 
| --- /dev/null | 
| +++ b/webkit/compositor_bindings/web_transform_operations_impl.h | 
| @@ -0,0 +1,48 @@ | 
| +// Copyright 2013 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 WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | 
| +#define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_ | 
| + | 
| +#include "base/memory/scoped_ptr.h" | 
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperations.h" | 
| +#include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 
| + | 
| +namespace cc { | 
| +class TransformOperations; | 
| +} | 
| + | 
| +namespace webkit { | 
| + | 
| +#if WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL | 
| +class WebTransformOperationsImpl : public WebKit::WebTransformOperations { | 
| + public: | 
| + WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformOperationsImpl(); | 
| + virtual ~WebTransformOperationsImpl(); | 
| + | 
| + const cc::TransformOperations& AsTransformOperations() const; | 
| + | 
| + // Implementation of WebKit::WebTransformOperations methods | 
| + virtual bool canBlendWith( | 
| + const WebKit::WebTransformOperations& other) const OVERRIDE; | 
| + virtual void appendTranslate(double x, double y, double z) OVERRIDE; | 
| + virtual void appendRotate( | 
| + double x, double y, double z, double degrees) OVERRIDE; | 
| + virtual void appendScale(double x, double y, double z) OVERRIDE; | 
| + virtual void appendSkew(double x, double y) OVERRIDE; | 
| + virtual void appendPerspective(double depth) OVERRIDE; | 
| + virtual void appendMatrix(const WebKit::WebTransformationMatrix&) OVERRIDE; | 
| + virtual void appendIdentity() OVERRIDE; | 
| + virtual bool isIdentity() const OVERRIDE; | 
| + | 
| + private: | 
| + DISALLOW_COPY_AND_ASSIGN(WebTransformOperationsImpl); | 
| + | 
| + 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
 | 
| +}; | 
| +#endif // WEB_TRANSFORM_OPERATIONS_IS_VIRTUAL | 
| + | 
| +} // namespace webkit | 
| + | 
| +#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_OPERATIONS_IMPL_H_ |