| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSTransformComponent_h | 5 #ifndef CSSTransformComponent_h |
| 6 #define CSSTransformComponent_h | 6 #define CSSTransformComponent_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/css/CSSFunctionValue.h" | 10 #include "core/css/CSSFunctionValue.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 namespace cssom { |
| 13 | 14 |
| 14 class CSSMatrixTransformComponent; | 15 class CSSMatrixTransformComponent; |
| 15 | 16 |
| 16 class CORE_EXPORT CSSTransformComponent : public GarbageCollectedFinalized<CSSTr
ansformComponent>, public ScriptWrappable { | 17 class CORE_EXPORT CSSTransformComponent : public GarbageCollectedFinalized<CSSTr
ansformComponent>, public ScriptWrappable { |
| 17 WTF_MAKE_NONCOPYABLE(CSSTransformComponent); | 18 WTF_MAKE_NONCOPYABLE(CSSTransformComponent); |
| 18 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 19 public: | 20 public: |
| 20 enum TransformComponentType { | 21 enum TransformComponentType { |
| 21 MatrixType, PerspectiveType, RotationType, ScaleType, SkewType, Translat
ionType, | 22 MatrixType, PerspectiveType, RotationType, ScaleType, SkewType, Translat
ionType, |
| 22 Matrix3DType, Rotation3DType, Scale3DType, Translation3DType | 23 Matrix3DType, Rotation3DType, Scale3DType, Translation3DType |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 | 47 |
| 47 virtual CSSFunctionValue* toCSSValue() const = 0; | 48 virtual CSSFunctionValue* toCSSValue() const = 0; |
| 48 virtual CSSMatrixTransformComponent* asMatrix() const = 0; | 49 virtual CSSMatrixTransformComponent* asMatrix() const = 0; |
| 49 | 50 |
| 50 DEFINE_INLINE_VIRTUAL_TRACE() { } | 51 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 51 | 52 |
| 52 protected: | 53 protected: |
| 53 CSSTransformComponent() = default; | 54 CSSTransformComponent() = default; |
| 54 }; | 55 }; |
| 55 | 56 |
| 57 } // namespace cssom |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 60 |
| 58 #endif | 61 #endif |
| OLD | NEW |