| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class SearchResult; | 23 class SearchResult; |
| 24 | 24 |
| 25 // Master model of app list that consists of three sub models: Apps, | 25 // Master model of app list that consists of three sub models: Apps, |
| 26 // SearchBoxModel and SearchResults. The Apps sub model owns a list of | 26 // SearchBoxModel and SearchResults. The Apps sub model owns a list of |
| 27 // AppListItemModel and is displayed in the grid view. SearchBoxModel is | 27 // AppListItemModel and is displayed in the grid view. SearchBoxModel is |
| 28 // the model for SearchBoxView. SearchResults owns a list of SearchResult. | 28 // the model for SearchBoxView. SearchResults owns a list of SearchResult. |
| 29 class APP_LIST_EXPORT AppListModel { | 29 class APP_LIST_EXPORT AppListModel { |
| 30 public: | 30 public: |
| 31 // A user of the app list. | 31 // A user of the app list. |
| 32 struct User { | 32 struct User { |
| 33 User(); |
| 34 ~User(); |
| 35 |
| 33 // Whether or not the app list is currently instantiated for this user. | 36 // Whether or not the app list is currently instantiated for this user. |
| 34 bool active; | 37 bool active; |
| 35 | 38 |
| 36 // The name of this user. | 39 // The name of this user. |
| 37 string16 name; | 40 string16 name; |
| 38 | 41 |
| 39 // The email address of this user. | 42 // The email address of this user. |
| 40 string16 email; | 43 string16 email; |
| 41 | 44 |
| 42 // The path to this user's profile directory. | 45 // The path to this user's profile directory. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 88 |
| 86 Status status_; | 89 Status status_; |
| 87 ObserverList<AppListModelObserver> observers_; | 90 ObserverList<AppListModelObserver> observers_; |
| 88 | 91 |
| 89 DISALLOW_COPY_AND_ASSIGN(AppListModel); | 92 DISALLOW_COPY_AND_ASSIGN(AppListModel); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace app_list | 95 } // namespace app_list |
| 93 | 96 |
| 94 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ | 97 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ |
| OLD | NEW |