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

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

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove binary changes Created 7 years, 3 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
« no previous file with comments | « ui/app_list/app_list_model_observer.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 11 matching lines...) Expand all
22 class AppListItemModel; 22 class AppListItemModel;
23 class AppListModel; 23 class AppListModel;
24 class SearchResult; 24 class SearchResult;
25 class SigninDelegate; 25 class SigninDelegate;
26 26
27 class APP_LIST_EXPORT AppListViewDelegate { 27 class APP_LIST_EXPORT AppListViewDelegate {
28 public: 28 public:
29 // AppListView owns the delegate. 29 // AppListView owns the delegate.
30 virtual ~AppListViewDelegate() {} 30 virtual ~AppListViewDelegate() {}
31 31
32 // Invoked to set the model that AppListView uses. 32 // Sets the delegate to use the profile at |profile_path|. This is currently
33 // only used by non-Ash Windows.
34 virtual void SetProfileByPath(const base::FilePath& profile_path) = 0;
35
36 // Invoked to initialize the model that AppListView uses. This binds the given
37 // model to this AppListViewDelegate and makes the AppListViewDelegate
38 // responsible for updating the model.
33 // Note that AppListView owns the model. 39 // Note that AppListView owns the model.
34 virtual void SetModel(AppListModel* model) = 0; 40 virtual void InitModel(AppListModel* model) = 0;
35 41
36 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. 42 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
37 virtual SigninDelegate* GetSigninDelegate() = 0; 43 virtual SigninDelegate* GetSigninDelegate() = 0;
38 44
39 // Gets a path to a shortcut for the given app. Returns asynchronously as the 45 // Gets a path to a shortcut for the given app. Returns asynchronously as the
40 // shortcut may not exist yet. 46 // shortcut may not exist yet.
41 virtual void GetShortcutPathForApp( 47 virtual void GetShortcutPathForApp(
42 const std::string& app_id, 48 const std::string& app_id,
43 const base::Callback<void(const base::FilePath&)>& callback) = 0; 49 const base::Callback<void(const base::FilePath&)>& callback) = 0;
44 50
(...skipping 29 matching lines...) Expand all
74 virtual gfx::ImageSkia GetWindowIcon() = 0; 80 virtual gfx::ImageSkia GetWindowIcon() = 0;
75 81
76 // Open the settings UI. 82 // Open the settings UI.
77 virtual void OpenSettings() = 0; 83 virtual void OpenSettings() = 0;
78 84
79 // Open the help UI. 85 // Open the help UI.
80 virtual void OpenHelp() = 0; 86 virtual void OpenHelp() = 0;
81 87
82 // Open the feedback UI. 88 // Open the feedback UI.
83 virtual void OpenFeedback() = 0; 89 virtual void OpenFeedback() = 0;
90
91 // Shows the app list for the profile specified by |profile_path|.
92 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0;
84 }; 93 };
85 94
86 } // namespace app_list 95 } // namespace app_list
87 96
88 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 97 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_model_observer.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698