| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MODEL_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_MODEL_H_ |
| 6 #define UI_APP_LIST_APP_LIST_MODEL_H_ | 6 #define UI_APP_LIST_APP_LIST_MODEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 enum Status { | 37 enum Status { |
| 38 STATUS_NORMAL, | 38 STATUS_NORMAL, |
| 39 STATUS_SYNCING, // Syncing apps or installing synced apps. | 39 STATUS_SYNCING, // Syncing apps or installing synced apps. |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 enum State { | 42 enum State { |
| 43 STATE_APPS, | 43 STATE_APPS, |
| 44 STATE_SEARCH_RESULTS, | 44 STATE_SEARCH_RESULTS, |
| 45 STATE_START, | 45 STATE_START, |
| 46 STATE_CUSTOM_LAUNCHER_PAGE, |
| 46 | 47 |
| 47 INVALID_STATE, | 48 INVALID_STATE, |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 typedef ui::ListModel<SearchResult> SearchResults; | 51 typedef ui::ListModel<SearchResult> SearchResults; |
| 51 | 52 |
| 52 AppListModel(); | 53 AppListModel(); |
| 53 ~AppListModel() override; | 54 ~AppListModel() override; |
| 54 | 55 |
| 55 void AddObserver(AppListModelObserver* observer); | 56 void AddObserver(AppListModelObserver* observer); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 State state_; | 184 State state_; |
| 184 ObserverList<AppListModelObserver, true> observers_; | 185 ObserverList<AppListModelObserver, true> observers_; |
| 185 bool folders_enabled_; | 186 bool folders_enabled_; |
| 186 | 187 |
| 187 DISALLOW_COPY_AND_ASSIGN(AppListModel); | 188 DISALLOW_COPY_AND_ASSIGN(AppListModel); |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 } // namespace app_list | 191 } // namespace app_list |
| 191 | 192 |
| 192 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ | 193 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ |
| OLD | NEW |