| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_APP_LIST_APP_LIST_ITEM_LIST_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_ITEM_LIST_H_ |
| 6 #define UI_APP_LIST_APP_LIST_ITEM_LIST_H_ | 6 #define UI_APP_LIST_APP_LIST_ITEM_LIST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Returns the index at which to insert an item in |app_list_items_| based on | 95 // Returns the index at which to insert an item in |app_list_items_| based on |
| 96 // |position| (which must be valid) and |id| (if the positions are equal). | 96 // |position| (which must be valid) and |id| (if the positions are equal). |
| 97 size_t GetItemSortOrderIndex(const syncer::StringOrdinal& position, | 97 size_t GetItemSortOrderIndex(const syncer::StringOrdinal& position, |
| 98 const std::string& id); | 98 const std::string& id); |
| 99 | 99 |
| 100 // Fixes the position of the item at |index| when the position matches the | 100 // Fixes the position of the item at |index| when the position matches the |
| 101 // previous item's position. |index| must be > 0. | 101 // previous item's position. |index| must be > 0. |
| 102 void FixItemPosition(size_t index); | 102 void FixItemPosition(size_t index); |
| 103 | 103 |
| 104 ScopedVector<AppListItem> app_list_items_; | 104 ScopedVector<AppListItem> app_list_items_; |
| 105 ObserverList<AppListItemListObserver> observers_; | 105 ObserverList<AppListItemListObserver, true> observers_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(AppListItemList); | 107 DISALLOW_COPY_AND_ASSIGN(AppListItemList); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace app_list | 110 } // namespace app_list |
| 111 | 111 |
| 112 #endif // UI_APP_LIST_APP_LIST_ITEM_LIST_H_ | 112 #endif // UI_APP_LIST_APP_LIST_ITEM_LIST_H_ |
| OLD | NEW |