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" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 15 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
16 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h" | 16 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h" |
17 #include "chrome/browser/ui/app_list/start_page_observer.h" | 17 #include "chrome/browser/ui/app_list/start_page_observer.h" |
18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
20 #include "ui/app_list/app_list_view_delegate.h" | 20 #include "ui/app_list/app_list_view_delegate.h" |
21 #include "ui/app_list/speech_ui_model.h" | |
22 | 21 |
23 class AppListControllerDelegate; | 22 class AppListControllerDelegate; |
24 class Profile; | 23 class Profile; |
25 | 24 |
26 namespace app_list { | 25 namespace app_list { |
27 class SearchController; | 26 class SearchController; |
| 27 class SpeechUIModel; |
28 } | 28 } |
29 | 29 |
30 namespace base { | 30 namespace base { |
31 class FilePath; | 31 class FilePath; |
32 } | 32 } |
33 | 33 |
34 namespace content { | 34 namespace content { |
35 class NotificationDetails; | 35 class NotificationDetails; |
36 class NotificationSource; | 36 class NotificationSource; |
37 } | 37 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 scoped_ptr<app_list::SearchController> search_controller_; | 118 scoped_ptr<app_list::SearchController> search_controller_; |
119 // Unowned pointer to the controller. | 119 // Unowned pointer to the controller. |
120 AppListControllerDelegate* controller_; | 120 AppListControllerDelegate* controller_; |
121 // Unowned pointer to the associated profile. May change if SetProfileByPath | 121 // Unowned pointer to the associated profile. May change if SetProfileByPath |
122 // is called. | 122 // is called. |
123 Profile* profile_; | 123 Profile* profile_; |
124 // Unowned pointer to the model owned by AppListSyncableService. Will change | 124 // Unowned pointer to the model owned by AppListSyncableService. Will change |
125 // if |profile_| changes. | 125 // if |profile_| changes. |
126 app_list::AppListModel* model_; | 126 app_list::AppListModel* model_; |
127 | 127 |
128 app_list::SpeechUIModel speech_ui_; | 128 scoped_ptr<app_list::SpeechUIModel> speech_ui_; |
129 | 129 |
130 base::TimeDelta auto_launch_timeout_; | 130 base::TimeDelta auto_launch_timeout_; |
131 | 131 |
132 Users users_; | 132 Users users_; |
133 | 133 |
134 content::NotificationRegistrar registrar_; | 134 content::NotificationRegistrar registrar_; |
135 ChromeSigninDelegate signin_delegate_; | 135 ChromeSigninDelegate signin_delegate_; |
136 #if defined(USE_ASH) | 136 #if defined(USE_ASH) |
137 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 137 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
138 #endif | 138 #endif |
139 | 139 |
140 ObserverList<app_list::AppListViewDelegateObserver> observers_; | 140 ObserverList<app_list::AppListViewDelegateObserver> observers_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 142 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
143 }; | 143 }; |
144 | 144 |
145 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 145 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |