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

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

Issue 2536323003: [LayoutNG] Fix enum values to conform to kEnumName in style guide. (Closed)
Patch Set: rebase. Created 4 years 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 NGLayoutInputNode_h 5 #ifndef NGLayoutInputNode_h
6 #define NGLayoutInputNode_h 6 #define NGLayoutInputNode_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 NGConstraintSpace; 13 class NGConstraintSpace;
14 class NGFragmentBase; 14 class NGFragmentBase;
15 class NGLayoutAlgorithm; 15 class NGLayoutAlgorithm;
16 16
17 // Represents the input to a layout algorithm for a given node. The layout 17 // Represents the input to a layout algorithm for a given node. The layout
18 // engine should use the style, node type to determine which type of layout 18 // engine should use the style, node type to determine which type of layout
19 // algorithm to use to produce fragments for this node. 19 // algorithm to use to produce fragments for this node.
20 class CORE_EXPORT NGLayoutInputNode 20 class CORE_EXPORT NGLayoutInputNode
21 : public GarbageCollectedFinalized<NGLayoutInputNode> { 21 : public GarbageCollectedFinalized<NGLayoutInputNode> {
22 public: 22 public:
23 enum NGLayoutInputNodeType { LegacyBlock = 0, LegacyInline = 1 }; 23 enum NGLayoutInputNodeType { kLegacyBlock = 0, kLegacyInline = 1 };
24 24
25 virtual ~NGLayoutInputNode(){}; 25 virtual ~NGLayoutInputNode(){};
26 26
27 // Returns true when done; when this function returns false, it has to be 27 // Returns true when done; when this function returns false, it has to be
28 // called again. The out parameter will only be set when this function 28 // called again. The out parameter will only be set when this function
29 // returns true. The same constraint space has to be passed each time. 29 // returns true. The same constraint space has to be passed each time.
30 virtual bool Layout(const NGConstraintSpace*, NGFragmentBase**) = 0; 30 virtual bool Layout(const NGConstraintSpace*, NGFragmentBase**) = 0;
31 31
32 // Returns the next sibling. 32 // Returns the next sibling.
33 virtual NGLayoutInputNode* NextSibling() = 0; 33 virtual NGLayoutInputNode* NextSibling() = 0;
(...skipping 10 matching lines...) Expand all
44 protected: 44 protected:
45 explicit NGLayoutInputNode(NGLayoutInputNodeType type) : type_(type) {} 45 explicit NGLayoutInputNode(NGLayoutInputNodeType type) : type_(type) {}
46 46
47 private: 47 private:
48 unsigned type_ : 1; 48 unsigned type_ : 1;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // NGLayoutInputNode_h 53 #endif // NGLayoutInputNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698