| 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 ShapeResultSpacing_h | 5 #ifndef ShapeResultSpacing_h |
| 6 #define ShapeResultSpacing_h | 6 #define ShapeResultSpacing_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/text/Character.h" | 9 #include "platform/text/Character.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class FontDescription; | 13 class FontDescription; |
| 14 class ShapeResult; | |
| 15 class TextRun; | 14 class TextRun; |
| 16 | 15 |
| 17 class PLATFORM_EXPORT ShapeResultSpacing final { | 16 class PLATFORM_EXPORT ShapeResultSpacing final { |
| 18 public: | 17 public: |
| 19 ShapeResultSpacing(const TextRun&, const FontDescription&); | 18 ShapeResultSpacing(const TextRun&, const FontDescription&); |
| 20 | 19 |
| 21 float letterSpacing() const { return m_letterSpacing; } | 20 float letterSpacing() const { return m_letterSpacing; } |
| 22 bool hasSpacing() const { return m_hasSpacing; } | 21 bool hasSpacing() const { return m_hasSpacing; } |
| 23 bool isVerticalOffset() const { return m_isVerticalOffset; } | 22 bool isVerticalOffset() const { return m_isVerticalOffset; } |
| 24 | 23 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 bool m_hasSpacing; | 40 bool m_hasSpacing; |
| 42 bool m_normalizeSpace; | 41 bool m_normalizeSpace; |
| 43 bool m_allowTabs; | 42 bool m_allowTabs; |
| 44 bool m_isAfterExpansion; | 43 bool m_isAfterExpansion; |
| 45 bool m_isVerticalOffset; | 44 bool m_isVerticalOffset; |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 } // namespace blink | 47 } // namespace blink |
| 49 | 48 |
| 50 #endif | 49 #endif |
| OLD | NEW |