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 Geometry_h | 5 #ifndef PaintSize_h |
6 #define Geometry_h | 6 #define PaintSize_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 class Geometry : public GarbageCollectedFinalized<Geometry>, public ScriptWrappa
ble { | 10 class PaintSize : public GarbageCollectedFinalized<PaintSize>, public ScriptWrap
pable { |
11 WTF_MAKE_NONCOPYABLE(Geometry); | 11 WTF_MAKE_NONCOPYABLE(PaintSize); |
12 DEFINE_WRAPPERTYPEINFO(); | 12 DEFINE_WRAPPERTYPEINFO(); |
13 public: | 13 public: |
14 static Geometry* create(IntSize size) | 14 static PaintSize* create(IntSize size) |
15 { | 15 { |
16 return new Geometry(size); | 16 return new PaintSize(size); |
17 } | 17 } |
18 virtual ~Geometry() {} | 18 virtual ~PaintSize() {} |
19 | 19 |
20 int width() const { return m_size.width(); } | 20 int width() const { return m_size.width(); } |
21 int height() const { return m_size.height(); } | 21 int height() const { return m_size.height(); } |
22 | 22 |
23 DEFINE_INLINE_TRACE() { } | 23 DEFINE_INLINE_TRACE() { } |
24 private: | 24 private: |
25 explicit Geometry(IntSize size) : m_size(size) { } | 25 explicit PaintSize(IntSize size) : m_size(size) { } |
26 | 26 |
27 IntSize m_size; | 27 IntSize m_size; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
31 | 31 |
32 #endif // Geometry_h | 32 #endif // PaintSize_h |
OLD | NEW |