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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Invoked to dismiss app list. This may leave the view open but hidden from | 66 // Invoked to dismiss app list. This may leave the view open but hidden from |
67 // the user. | 67 // the user. |
68 virtual void Dismiss() = 0; | 68 virtual void Dismiss() = 0; |
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 // Returns the icon to be displayed in the window and taskbar. | 73 // Returns the icon to be displayed in the window and taskbar. |
74 virtual gfx::ImageSkia GetWindowIcon() = 0; | 74 virtual gfx::ImageSkia GetWindowIcon() = 0; |
75 | 75 |
76 // Returns the name of the current user. | |
77 virtual base::string16 GetCurrentUserName() = 0; | |
78 | |
79 // Returns the email of the current user. | |
80 virtual base::string16 GetCurrentUserEmail() = 0; | |
81 | |
82 // Open the settings UI. | 76 // Open the settings UI. |
83 virtual void OpenSettings() = 0; | 77 virtual void OpenSettings() = 0; |
84 | 78 |
85 // Open the help UI. | 79 // Open the help UI. |
86 virtual void OpenHelp() = 0; | 80 virtual void OpenHelp() = 0; |
87 | 81 |
88 // Open the feedback UI. | 82 // Open the feedback UI. |
89 virtual void OpenFeedback() = 0; | 83 virtual void OpenFeedback() = 0; |
90 }; | 84 }; |
91 | 85 |
92 } // namespace app_list | 86 } // namespace app_list |
93 | 87 |
94 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 88 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |