Chromium Code Reviews| OLD | NEW | 
|---|---|
| 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 25 matching lines...) Expand all Loading... | |
| 36 | 36 | 
| 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 enum GridPositionSide { | |
| 47 ColumnStartSide, | |
| 48 ColumnEndSide, | |
| 49 RowStartSide, | |
| 50 RowEndSide | |
| 51 }; | |
| 52 | |
| 
 
Manuel Rego
2015/11/10 09:08:03
Why are you moving the enum it's mostly used in Gr
 
svillar
2015/11/10 10:56:37
Definitions do not belong to the place they're use
 
 | |
| 46 class GridPosition { | 53 class GridPosition { | 
| 47 DISALLOW_NEW(); | 54 DISALLOW_NEW(); | 
| 48 public: | 55 public: | 
| 49 GridPosition() | 56 GridPosition() | 
| 50 : m_type(AutoPosition) | 57 : m_type(AutoPosition) | 
| 51 , m_integerPosition(0) | 58 , m_integerPosition(0) | 
| 52 { | 59 { | 
| 53 } | 60 } | 
| 54 | 61 | 
| 55 bool isPositive() const { return integerPosition() > 0; } | 62 bool isPositive() const { return integerPosition() > 0; } | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 } | 124 } | 
| 118 private: | 125 private: | 
| 119 GridPositionType m_type; | 126 GridPositionType m_type; | 
| 120 int m_integerPosition; | 127 int m_integerPosition; | 
| 121 String m_namedGridLine; | 128 String m_namedGridLine; | 
| 122 }; | 129 }; | 
| 123 | 130 | 
| 124 } // namespace blink | 131 } // namespace blink | 
| 125 | 132 | 
| 126 #endif // GridPosition_h | 133 #endif // GridPosition_h | 
| OLD | NEW |