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 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" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int event_flags) OVERRIDE; | 73 int event_flags) OVERRIDE; |
74 virtual void Dismiss() OVERRIDE; | 74 virtual void Dismiss() OVERRIDE; |
75 virtual void ViewClosing() OVERRIDE; | 75 virtual void ViewClosing() OVERRIDE; |
76 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 76 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
77 virtual void OpenSettings() OVERRIDE; | 77 virtual void OpenSettings() OVERRIDE; |
78 virtual void OpenHelp() OVERRIDE; | 78 virtual void OpenHelp() OVERRIDE; |
79 virtual void OpenFeedback() OVERRIDE; | 79 virtual void OpenFeedback() OVERRIDE; |
80 virtual void ShowForProfileByPath( | 80 virtual void ShowForProfileByPath( |
81 const base::FilePath& profile_path) OVERRIDE; | 81 const base::FilePath& profile_path) OVERRIDE; |
82 virtual content::WebContents* GetStartPageContents() OVERRIDE; | 82 virtual content::WebContents* GetStartPageContents() OVERRIDE; |
| 83 virtual const Users& GetUsers() const OVERRIDE; |
83 | 84 |
84 // Overridden from content::NotificationObserver: | 85 // Overridden from content::NotificationObserver: |
85 virtual void Observe(int type, | 86 virtual void Observe(int type, |
86 const content::NotificationSource& source, | 87 const content::NotificationSource& source, |
87 const content::NotificationDetails& details) OVERRIDE; | 88 const content::NotificationDetails& details) OVERRIDE; |
88 | 89 |
89 // Overridden from ProfileInfoCacheObserver: | 90 // Overridden from ProfileInfoCacheObserver: |
90 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; | 91 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
91 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | 92 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
92 const base::string16& profile_name) OVERRIDE; | 93 const base::string16& profile_name) OVERRIDE; |
93 virtual void OnProfileNameChanged( | 94 virtual void OnProfileNameChanged( |
94 const base::FilePath& profile_path, | 95 const base::FilePath& profile_path, |
95 const base::string16& old_profile_name) OVERRIDE; | 96 const base::string16& old_profile_name) OVERRIDE; |
96 | 97 |
97 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; | 98 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; |
98 scoped_ptr<app_list::SearchController> search_controller_; | 99 scoped_ptr<app_list::SearchController> search_controller_; |
99 scoped_ptr<AppListControllerDelegate> controller_; | 100 scoped_ptr<AppListControllerDelegate> controller_; |
100 Profile* profile_; | 101 Profile* profile_; |
| 102 Users users_; |
101 app_list::AppListModel* model_; // Weak. Owned by AppListView. | 103 app_list::AppListModel* model_; // Weak. Owned by AppListView. |
102 | 104 |
103 content::NotificationRegistrar registrar_; | 105 content::NotificationRegistrar registrar_; |
104 ChromeSigninDelegate signin_delegate_; | 106 ChromeSigninDelegate signin_delegate_; |
105 #if defined(USE_ASH) | 107 #if defined(USE_ASH) |
106 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 108 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
107 #endif | 109 #endif |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 111 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
110 }; | 112 }; |
111 | 113 |
112 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 114 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |