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

Side by Side Diff: third_party/WebKit/Source/core/style/GridPosition.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
39 enum GridPositionType { 39 enum GridPositionType {
40 AutoPosition, 40 AutoPosition,
41 ExplicitPosition, // [ <integer> || <string> ] 41 ExplicitPosition, // [ <integer> || <string> ]
42 SpanPosition, // span && [ <integer> || <string> ] 42 SpanPosition, // span && [ <integer> || <string> ]
43 NamedGridAreaPosition // <ident> 43 NamedGridAreaPosition // <ident>
44 }; 44 };
45 45
46 class GridPosition { 46 class GridPosition {
47 DISALLOW_ALLOCATION(); 47 DISALLOW_NEW();
48 public: 48 public:
49 GridPosition() 49 GridPosition()
50 : m_type(AutoPosition) 50 : m_type(AutoPosition)
51 , m_integerPosition(0) 51 , m_integerPosition(0)
52 { 52 {
53 } 53 }
54 54
55 bool isPositive() const { return integerPosition() > 0; } 55 bool isPositive() const { return integerPosition() > 0; }
56 56
57 GridPositionType type() const { return m_type; } 57 GridPositionType type() const { return m_type; }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 private: 118 private:
119 GridPositionType m_type; 119 GridPositionType m_type;
120 int m_integerPosition; 120 int m_integerPosition;
121 String m_namedGridLine; 121 String m_namedGridLine;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // GridPosition_h 126 #endif // GridPosition_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/GridLength.h ('k') | third_party/WebKit/Source/core/style/GridResolvedPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698