| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual void Dismiss() OVERRIDE; | 75 virtual void Dismiss() OVERRIDE; |
| 76 virtual void ViewClosing() OVERRIDE; | 76 virtual void ViewClosing() OVERRIDE; |
| 77 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 77 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 78 virtual void OpenSettings() OVERRIDE; | 78 virtual void OpenSettings() OVERRIDE; |
| 79 virtual void OpenHelp() OVERRIDE; | 79 virtual void OpenHelp() OVERRIDE; |
| 80 virtual void OpenFeedback() OVERRIDE; | 80 virtual void OpenFeedback() OVERRIDE; |
| 81 virtual void ToggleSpeechRecognition() OVERRIDE; | 81 virtual void ToggleSpeechRecognition() OVERRIDE; |
| 82 virtual void ShowForProfileByPath( | 82 virtual void ShowForProfileByPath( |
| 83 const base::FilePath& profile_path) OVERRIDE; | 83 const base::FilePath& profile_path) OVERRIDE; |
| 84 virtual content::WebContents* GetStartPageContents() OVERRIDE; | 84 virtual content::WebContents* GetStartPageContents() OVERRIDE; |
| 85 virtual const Users& GetUsers() const OVERRIDE; | |
| 86 | 85 |
| 87 // Overridden from app_list::StartPageObserver: | 86 // Overridden from app_list::StartPageObserver: |
| 88 virtual void OnSearch(const base::string16& query) OVERRIDE; | 87 virtual void OnSearch(const base::string16& query) OVERRIDE; |
| 89 virtual void OnSpeechRecognitionStateChanged(bool recognizing) OVERRIDE; | 88 virtual void OnSpeechRecognitionStateChanged(bool recognizing) OVERRIDE; |
| 90 | 89 |
| 91 // Overridden from content::NotificationObserver: | 90 // Overridden from content::NotificationObserver: |
| 92 virtual void Observe(int type, | 91 virtual void Observe(int type, |
| 93 const content::NotificationSource& source, | 92 const content::NotificationSource& source, |
| 94 const content::NotificationDetails& details) OVERRIDE; | 93 const content::NotificationDetails& details) OVERRIDE; |
| 95 | 94 |
| 96 // Overridden from ProfileInfoCacheObserver: | 95 // Overridden from ProfileInfoCacheObserver: |
| 97 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; | 96 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
| 98 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | 97 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 99 const base::string16& profile_name) OVERRIDE; | 98 const base::string16& profile_name) OVERRIDE; |
| 100 virtual void OnProfileNameChanged( | 99 virtual void OnProfileNameChanged( |
| 101 const base::FilePath& profile_path, | 100 const base::FilePath& profile_path, |
| 102 const base::string16& old_profile_name) OVERRIDE; | 101 const base::string16& old_profile_name) OVERRIDE; |
| 103 | 102 |
| 104 scoped_ptr<app_list::SearchController> search_controller_; | 103 scoped_ptr<app_list::SearchController> search_controller_; |
| 105 // Unowned pointer to the controller. | 104 // Unowned pointer to the controller. |
| 106 AppListControllerDelegate* controller_; | 105 AppListControllerDelegate* controller_; |
| 107 // Unowned pointer to the associated profile. May change if SetProfileByPath | 106 // Unowned pointer to the associated profile. May change if SetProfileByPath |
| 108 // is called. | 107 // is called. |
| 109 Profile* profile_; | 108 Profile* profile_; |
| 110 // Unowned pointer to the model owned by AppListSyncableService. Will change | 109 // Unowned pointer to the model owned by AppListSyncableService. Will change |
| 111 // if |profile_| changes. | 110 // if |profile_| changes. |
| 112 app_list::AppListModel* model_; | 111 app_list::AppListModel* model_; |
| 113 | 112 |
| 114 Users users_; | |
| 115 | |
| 116 content::NotificationRegistrar registrar_; | 113 content::NotificationRegistrar registrar_; |
| 117 ChromeSigninDelegate signin_delegate_; | 114 ChromeSigninDelegate signin_delegate_; |
| 118 #if defined(USE_ASH) | 115 #if defined(USE_ASH) |
| 119 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 116 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
| 120 #endif | 117 #endif |
| 121 | 118 |
| 122 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 119 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
| 123 }; | 120 }; |
| 124 | 121 |
| 125 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 122 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |