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 NGBreakToken_h | 5 #ifndef NGBreakToken_h |
6 #define NGBreakToken_h | 6 #define NGBreakToken_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class CORE_EXPORT NGBreakToken | 13 class CORE_EXPORT NGBreakToken |
14 : public GarbageCollectedFinalized<NGBreakToken> { | 14 : public GarbageCollectedFinalized<NGBreakToken> { |
15 public: | 15 public: |
16 NGBreakToken() {} | 16 virtual ~NGBreakToken() {} |
17 | 17 |
18 DEFINE_INLINE_TRACE() {} | 18 enum NGBreakTokenType { kBlockBreakToken, kTextBreakToken }; |
| 19 NGBreakTokenType Type() const { return static_cast<NGBreakTokenType>(type_); } |
| 20 |
| 21 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 22 |
| 23 protected: |
| 24 NGBreakToken(NGBreakTokenType type) : type_(type) {} |
| 25 |
| 26 private: |
| 27 unsigned type_ : 1; |
19 }; | 28 }; |
20 } | |
21 | 29 |
22 #endif | 30 } // namespace blink |
| 31 |
| 32 #endif // NGBreakToken_h |
OLD | NEW |