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_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
11 | 11 |
12 struct AvatarMenuItemModel; | |
13 | |
12 namespace base { | 14 namespace base { |
13 class FilePath; | 15 class FilePath; |
14 } | 16 } |
15 | 17 |
16 namespace gfx { | 18 namespace gfx { |
17 class ImageSkia; | 19 class ImageSkia; |
18 } | 20 } |
19 | 21 |
20 namespace app_list { | 22 namespace app_list { |
21 | 23 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 virtual base::string16 GetCurrentUserEmail() = 0; | 85 virtual base::string16 GetCurrentUserEmail() = 0; |
84 | 86 |
85 // Open the settings UI. | 87 // Open the settings UI. |
86 virtual void OpenSettings() = 0; | 88 virtual void OpenSettings() = 0; |
87 | 89 |
88 // Open the help UI. | 90 // Open the help UI. |
89 virtual void OpenHelp() = 0; | 91 virtual void OpenHelp() = 0; |
90 | 92 |
91 // Open the feedback UI. | 93 // Open the feedback UI. |
92 virtual void OpenFeedback() = 0; | 94 virtual void OpenFeedback() = 0; |
95 | |
96 // Returns a vector of |AvatarMenuItemModel|s reflecting the current available | |
97 // profiles. | |
98 virtual std::vector<AvatarMenuItemModel> GetAvatarMenuItems() = 0; | |
tapted
2013/07/29 01:59:10
nit: #include vector?
calamity
2013/07/30 08:42:34
Done.
| |
99 | |
100 // Shows the app list for the profile specified by |index|. | |
101 virtual void ShowForProfileAtIndex(size_t index) = 0; | |
93 }; | 102 }; |
94 | 103 |
95 } // namespace app_list | 104 } // namespace app_list |
96 | 105 |
97 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 106 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |