Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 TransformOrigin_h | |
| 6 #define TransformOrigin_h | |
| 7 | |
| 8 #include "platform/Length.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class TransformOrigin { | |
| 13 public: | |
| 14 TransformOrigin() { } | |
|
Timothy Loh
2014/10/10 15:04:48
Is this ctor ever used?
| |
| 15 TransformOrigin(const Length& x, const Length& y, float z) : m_x(x), m_y(y), m_z(z) { } | |
| 16 bool operator==(const TransformOrigin& o) const { return m_x == o.m_x && m_y == o.m_y && m_z == o.m_z; } | |
| 17 bool operator!=(const TransformOrigin& o) const { return !(*this == o); } | |
| 18 const Length& x() const { return m_x; } | |
| 19 const Length& y() const { return m_y; } | |
| 20 float z() const { return m_z; } | |
| 21 private: | |
| 22 Length m_x; | |
| 23 Length m_y; | |
| 24 float m_z; | |
| 25 }; | |
| 26 | |
| 27 } // namespace blink | |
| 28 | |
| 29 #endif // TransformOrigin_h | |
| OLD | NEW |