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

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

Issue 12090062: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable tests on aura Created 7 years, 10 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
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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/app_list/app_list_view_delegate.h" 13 #include "ui/app_list/app_list_view_delegate.h"
14 14
15 class AppListControllerDelegate; 15 class AppListControllerDelegate;
16 class AppsModelBuilder; 16 class AppsModelBuilder;
17 class Profile; 17 class Profile;
18 class SearchBuilder; 18 class SearchBuilder;
19 19
20 #if defined(USE_ASH) 20 #if defined(USE_ASH)
21 class AppSyncUIStateWatcher; 21 class AppSyncUIStateWatcher;
22 #endif 22 #endif
23 23
24 class AppListViewDelegate : public app_list::AppListViewDelegate { 24 class AppListViewDelegate : public app_list::AppListViewDelegate {
25 public: 25 public:
26 // The delegate will take ownership of the controller. 26 // The delegate will take ownership of the controller.
27 explicit AppListViewDelegate(AppListControllerDelegate* controller); 27 AppListViewDelegate(AppListControllerDelegate* controller, Profile* profile);
28 virtual ~AppListViewDelegate(); 28 virtual ~AppListViewDelegate();
29 29
30 private: 30 private:
31 // Overridden from app_list::AppListViewDelegate: 31 // Overridden from app_list::AppListViewDelegate:
32 virtual void SetModel(app_list::AppListModel* model) OVERRIDE; 32 virtual void SetModel(app_list::AppListModel* model) OVERRIDE;
33 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; 33 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE;
34 virtual void ActivateAppListItem(app_list::AppListItemModel* item, 34 virtual void ActivateAppListItem(app_list::AppListItemModel* item,
35 int event_flags) OVERRIDE; 35 int event_flags) OVERRIDE;
36 virtual void StartSearch() OVERRIDE; 36 virtual void StartSearch() OVERRIDE;
37 virtual void StopSearch() OVERRIDE; 37 virtual void StopSearch() OVERRIDE;
38 virtual void OpenSearchResult(const app_list::SearchResult& result, 38 virtual void OpenSearchResult(const app_list::SearchResult& result,
39 int event_flags) OVERRIDE; 39 int event_flags) OVERRIDE;
40 virtual void InvokeSearchResultAction(const app_list::SearchResult& result, 40 virtual void InvokeSearchResultAction(const app_list::SearchResult& result,
41 int action_index, 41 int action_index,
42 int event_flags) OVERRIDE; 42 int event_flags) OVERRIDE;
43 virtual void Dismiss() OVERRIDE; 43 virtual void Dismiss() OVERRIDE;
44 virtual void ViewClosing() OVERRIDE; 44 virtual void ViewClosing() OVERRIDE;
45 virtual void ViewActivationChanged(bool active) OVERRIDE; 45 virtual void ViewActivationChanged(bool active) OVERRIDE;
46 46
47 scoped_ptr<app_list::SigninDelegate> signin_delegate_; 47 scoped_ptr<app_list::SigninDelegate> signin_delegate_;
48 scoped_ptr<AppsModelBuilder> apps_builder_; 48 scoped_ptr<AppsModelBuilder> apps_builder_;
49 scoped_ptr<SearchBuilder> search_builder_; 49 scoped_ptr<SearchBuilder> search_builder_;
50 scoped_ptr<AppListControllerDelegate> controller_; 50 scoped_ptr<AppListControllerDelegate> controller_;
51 Profile* profile_;
51 52
52 #if defined(USE_ASH) 53 #if defined(USE_ASH)
53 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; 54 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_;
54 #endif 55 #endif
55 56
56 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); 57 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate);
57 }; 58 };
58 59
59 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 60 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_util.cc ('k') | chrome/browser/ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698