| 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 "chrome/browser/profiles/profile_info_cache_observer.h" | 14 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 15 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h" | 15 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h" |
| 16 #include "chrome/browser/ui/app_list/start_page_observer.h" | 16 #include "chrome/browser/ui/app_list/start_page_observer.h" |
| 17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
| 19 #include "ui/app_list/app_list_view_delegate.h" | 19 #include "ui/app_list/app_list_view_delegate.h" |
| 20 #include "ui/app_list/speech_ui_model.h" |
| 20 | 21 |
| 21 class AppListControllerDelegate; | 22 class AppListControllerDelegate; |
| 22 class Profile; | 23 class Profile; |
| 23 | 24 |
| 24 namespace app_list { | 25 namespace app_list { |
| 25 class SearchController; | 26 class SearchController; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace base { | 29 namespace base { |
| 29 class FilePath; | 30 class FilePath; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual void OpenSettings() OVERRIDE; | 79 virtual void OpenSettings() OVERRIDE; |
| 79 virtual void OpenHelp() OVERRIDE; | 80 virtual void OpenHelp() OVERRIDE; |
| 80 virtual void OpenFeedback() OVERRIDE; | 81 virtual void OpenFeedback() OVERRIDE; |
| 81 virtual void ToggleSpeechRecognition() OVERRIDE; | 82 virtual void ToggleSpeechRecognition() OVERRIDE; |
| 82 virtual void ShowForProfileByPath( | 83 virtual void ShowForProfileByPath( |
| 83 const base::FilePath& profile_path) OVERRIDE; | 84 const base::FilePath& profile_path) OVERRIDE; |
| 84 virtual content::WebContents* GetStartPageContents() OVERRIDE; | 85 virtual content::WebContents* GetStartPageContents() OVERRIDE; |
| 85 virtual const Users& GetUsers() const OVERRIDE; | 86 virtual const Users& GetUsers() const OVERRIDE; |
| 86 | 87 |
| 87 // Overridden from app_list::StartPageObserver: | 88 // Overridden from app_list::StartPageObserver: |
| 88 virtual void OnSearch(const base::string16& query) OVERRIDE; | 89 virtual void OnSpeechResult(const base::string16& query, |
| 89 virtual void OnSpeechRecognitionStateChanged(bool recognizing) OVERRIDE; | 90 bool is_final) OVERRIDE; |
| 91 virtual void OnSpeechSoundLevelChanged(int16 level) OVERRIDE; |
| 92 virtual void OnSpeechRecognitionStateChanged( |
| 93 app_list::SpeechRecognitionState new_state) OVERRIDE; |
| 90 | 94 |
| 91 // Overridden from content::NotificationObserver: | 95 // Overridden from content::NotificationObserver: |
| 92 virtual void Observe(int type, | 96 virtual void Observe(int type, |
| 93 const content::NotificationSource& source, | 97 const content::NotificationSource& source, |
| 94 const content::NotificationDetails& details) OVERRIDE; | 98 const content::NotificationDetails& details) OVERRIDE; |
| 95 | 99 |
| 96 // Overridden from ProfileInfoCacheObserver: | 100 // Overridden from ProfileInfoCacheObserver: |
| 97 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; | 101 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
| 98 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | 102 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 99 const base::string16& profile_name) OVERRIDE; | 103 const base::string16& profile_name) OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 116 content::NotificationRegistrar registrar_; | 120 content::NotificationRegistrar registrar_; |
| 117 ChromeSigninDelegate signin_delegate_; | 121 ChromeSigninDelegate signin_delegate_; |
| 118 #if defined(USE_ASH) | 122 #if defined(USE_ASH) |
| 119 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 123 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
| 120 #endif | 124 #endif |
| 121 | 125 |
| 122 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 126 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
| 123 }; | 127 }; |
| 124 | 128 |
| 125 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 129 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |