OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/enhanced_bookmarks/item_position.h" | 5 #include "components/enhanced_bookmarks/item_position.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 | 9 |
9 namespace { | 10 namespace { |
10 const unsigned kPositionBase = 64; | 11 const unsigned kPositionBase = 64; |
11 const char kPositionAlphabet[] = | 12 const char kPositionAlphabet[] = |
12 ".0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; | 13 ".0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"; |
13 } // namespace | 14 } // namespace |
14 | 15 |
15 namespace enhanced_bookmarks { | 16 namespace enhanced_bookmarks { |
16 | 17 |
17 ItemPosition::ItemPosition() { | 18 ItemPosition::ItemPosition() { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 170 |
170 bool ItemPosition::Equals(const ItemPosition& other) const { | 171 bool ItemPosition::Equals(const ItemPosition& other) const { |
171 return position_ == other.position_; | 172 return position_ == other.position_; |
172 } | 173 } |
173 | 174 |
174 bool ItemPosition::LessThan(const ItemPosition& other) const { | 175 bool ItemPosition::LessThan(const ItemPosition& other) const { |
175 return position_ < other.position_; | 176 return position_ < other.position_; |
176 } | 177 } |
177 | 178 |
178 } // namespace enhanced_bookmarks | 179 } // namespace enhanced_bookmarks |
OLD | NEW |