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" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Invoked when the app list is closing. | 70 // Invoked when the app list is closing. |
71 virtual void ViewClosing() = 0; | 71 virtual void ViewClosing() = 0; |
72 | 72 |
73 // Invoked when the app list's activated state changes. | 73 // Invoked when the app list's activated state changes. |
74 virtual void ViewActivationChanged(bool active) = 0; | 74 virtual void ViewActivationChanged(bool active) = 0; |
75 | 75 |
76 // Returns the icon to be displayed in the window and taskbar. | 76 // Returns the icon to be displayed in the window and taskbar. |
77 virtual gfx::ImageSkia GetWindowIcon() = 0; | 77 virtual gfx::ImageSkia GetWindowIcon() = 0; |
78 | 78 |
79 // Returns the name of the current user. | |
80 virtual base::string16 GetCurrentUserName() = 0; | |
81 | |
82 // Returns the email of the current user. | |
83 virtual base::string16 GetCurrentUserEmail() = 0; | |
84 | |
85 // Open the settings UI. | 79 // Open the settings UI. |
86 virtual void OpenSettings() = 0; | 80 virtual void OpenSettings() = 0; |
87 | 81 |
88 // Open the help UI. | 82 // Open the help UI. |
89 virtual void OpenHelp() = 0; | 83 virtual void OpenHelp() = 0; |
90 | 84 |
91 // Open the feedback UI. | 85 // Open the feedback UI. |
92 virtual void OpenFeedback() = 0; | 86 virtual void OpenFeedback() = 0; |
93 }; | 87 }; |
94 | 88 |
95 } // namespace app_list | 89 } // namespace app_list |
96 | 90 |
97 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 91 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |