| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NGText_h | |
| 6 #define NGText_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "platform/LayoutUnit.h" | |
| 10 #include "wtf/text/WTFString.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class CORE_EXPORT NGText final { | |
| 15 public: | |
| 16 NGText(LayoutUnit inlineSize, LayoutUnit blockSize); | |
| 17 ~NGText() { } | |
| 18 | |
| 19 LayoutUnit inlineSize() const { return m_inlineSize; } | |
| 20 LayoutUnit blockSize() const { return m_blockSize; } | |
| 21 | |
| 22 LayoutUnit inlineOffset() const { return m_inlineOffset; } | |
| 23 LayoutUnit blockOffset() const { return m_blockOffset; } | |
| 24 | |
| 25 const String text() const { return String(); } | |
| 26 | |
| 27 void setOffset(LayoutUnit inlineOffset, LayoutUnit blockOffset); | |
| 28 | |
| 29 private: | |
| 30 LayoutUnit m_inlineSize; | |
| 31 LayoutUnit m_blockSize; | |
| 32 | |
| 33 LayoutUnit m_inlineOffset; | |
| 34 LayoutUnit m_blockOffset; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // NGText_h | |
| OLD | NEW |