Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 12789010: [win] Change app launcher profile indicator to be a menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/string16.h"
8 #include "ui/app_list/app_list_export.h" 9 #include "ui/app_list/app_list_export.h"
9 10
10 namespace gfx { 11 namespace gfx {
11 class ImageSkia; 12 class ImageSkia;
12 } 13 }
13 14
14 namespace app_list { 15 namespace app_list {
15 16
16 class AppListItemModel; 17 class AppListItemModel;
17 class AppListModel; 18 class AppListModel;
18 class SearchResult; 19 class SearchResult;
19 class SigninDelegate; 20 class SigninDelegate;
20 21
21 class APP_LIST_EXPORT AppListViewDelegate { 22 class APP_LIST_EXPORT AppListViewDelegate {
tapted 2013/03/20 08:17:56 note: I think you will need to update ash/shell/ap
benwells 2013/03/20 08:43:34 Done.
22 public: 23 public:
23 // AppListView owns the delegate. 24 // AppListView owns the delegate.
24 virtual ~AppListViewDelegate() {} 25 virtual ~AppListViewDelegate() {}
25 26
26 // Invoked to set the model that AppListView uses. 27 // Invoked to set the model that AppListView uses.
27 // Note that AppListView owns the model. 28 // Note that AppListView owns the model.
28 virtual void SetModel(AppListModel* model) = 0; 29 virtual void SetModel(AppListModel* model) = 0;
29 30
30 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. 31 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
31 virtual SigninDelegate* GetSigninDelegate() = 0; 32 virtual SigninDelegate* GetSigninDelegate() = 0;
(...skipping 25 matching lines...) Expand all
57 virtual void Dismiss() = 0; 58 virtual void Dismiss() = 0;
58 59
59 // Invoked when the app list is closing. 60 // Invoked when the app list is closing.
60 virtual void ViewClosing() = 0; 61 virtual void ViewClosing() = 0;
61 62
62 // Invoked when the app list's activated state changes. 63 // Invoked when the app list's activated state changes.
63 virtual void ViewActivationChanged(bool active) = 0; 64 virtual void ViewActivationChanged(bool active) = 0;
64 65
65 // Returns the icon to be displayed in the window and taskbar. 66 // Returns the icon to be displayed in the window and taskbar.
66 virtual gfx::ImageSkia GetWindowIcon() = 0; 67 virtual gfx::ImageSkia GetWindowIcon() = 0;
68
69 // Returns the name of the current user.
70 virtual string16 GetCurrentUserName() = 0;
71
72 // Returns the email of the current user.
73 virtual string16 GetCurrentUserEmail() = 0;
74
75 // Open the settings UI.
76 virtual void OpenSettings() = 0;
77
78 // Open the feedback UI.
79 virtual void OpenFeedback() = 0;
67 }; 80 };
68 81
69 } // namespace app_list 82 } // namespace app_list
70 83
71 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 84 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698