Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_break_token.h

Issue 2632523002: [LayoutNG] Initial support for multicol, introducing NGBlockBreakToken. (Closed)
Patch Set: Add TODO. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.cc ('k') | third_party/WebKit/Source/core/layout/ng/ng_column_mapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698