| 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 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ | 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ |
| 6 #define COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ | 6 #define COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 namespace enhanced_bookmarks { | 13 namespace enhanced_bookmarks { |
| 12 | 14 |
| 13 // Convenience class for generating string based relative ordering between | 15 // Convenience class for generating string based relative ordering between |
| 14 // bookmark nodes. | 16 // bookmark nodes. |
| 15 class ItemPosition { | 17 class ItemPosition { |
| 16 public: | 18 public: |
| 17 ~ItemPosition(); | 19 ~ItemPosition(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 const PositionVector& after); | 50 const PositionVector& after); |
| 49 static PositionVector CreateAfterImpl(const PositionVector& after, | 51 static PositionVector CreateAfterImpl(const PositionVector& after, |
| 50 size_t from_index); | 52 size_t from_index); |
| 51 | 53 |
| 52 PositionVector position_; | 54 PositionVector position_; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 } // namespace enhanced_bookmarks | 57 } // namespace enhanced_bookmarks |
| 56 | 58 |
| 57 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ | 59 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ITEM_POSITION_H_ |
| OLD | NEW |