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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "sync/api/string_ordinal.h" | 16 #include "components/sync/api/string_ordinal.h" |
17 #include "ui/app_list/app_list_export.h" | 17 #include "ui/app_list/app_list_export.h" |
18 #include "ui/app_list/app_list_item_list_observer.h" | 18 #include "ui/app_list/app_list_item_list_observer.h" |
19 | 19 |
20 namespace app_list { | 20 namespace app_list { |
21 | 21 |
22 class AppListItem; | 22 class AppListItem; |
23 | 23 |
24 // Class to manage items in the app list. Used both by AppListModel and | 24 // Class to manage items in the app list. Used both by AppListModel and |
25 // AppListFolderItem. Manages the position ordinal of items in the list, and | 25 // AppListFolderItem. Manages the position ordinal of items in the list, and |
26 // notifies observers when items in the list are added / deleted / moved. | 26 // notifies observers when items in the list are added / deleted / moved. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 ScopedVector<AppListItem> app_list_items_; | 111 ScopedVector<AppListItem> app_list_items_; |
112 base::ObserverList<AppListItemListObserver, true> observers_; | 112 base::ObserverList<AppListItemListObserver, true> observers_; |
113 std::string highlighted_id_; | 113 std::string highlighted_id_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(AppListItemList); | 115 DISALLOW_COPY_AND_ASSIGN(AppListItemList); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace app_list | 118 } // namespace app_list |
119 | 119 |
120 #endif // UI_APP_LIST_APP_LIST_ITEM_LIST_H_ | 120 #endif // UI_APP_LIST_APP_LIST_ITEM_LIST_H_ |
OLD | NEW |