| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_START_PAGE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void WebUILoaded(); | 70 void WebUILoaded(); |
| 71 | 71 |
| 72 // Returns true if the hotword is enabled in the app-launcher. | 72 // Returns true if the hotword is enabled in the app-launcher. |
| 73 bool HotwordEnabled(); | 73 bool HotwordEnabled(); |
| 74 | 74 |
| 75 // They return essentially the same web contents but might return NULL when | 75 // They return essentially the same web contents but might return NULL when |
| 76 // some flag disables the feature. | 76 // some flag disables the feature. |
| 77 content::WebContents* GetStartPageContents(); | 77 content::WebContents* GetStartPageContents(); |
| 78 content::WebContents* GetSpeechRecognitionContents(); | 78 content::WebContents* GetSpeechRecognitionContents(); |
| 79 | 79 |
| 80 void set_search_engine_is_google(bool search_engine_is_google) { |
| 81 search_engine_is_google_ = search_engine_is_google; |
| 82 } |
| 80 Profile* profile() { return profile_; } | 83 Profile* profile() { return profile_; } |
| 81 SpeechRecognitionState state() { return state_; } | 84 SpeechRecognitionState state() { return state_; } |
| 82 | 85 |
| 83 // Overridden from app_list::SpeechRecognizerDelegate: | 86 // Overridden from app_list::SpeechRecognizerDelegate: |
| 84 void OnSpeechResult(const base::string16& query, bool is_final) override; | 87 void OnSpeechResult(const base::string16& query, bool is_final) override; |
| 85 void OnSpeechSoundLevelChanged(int16_t level) override; | 88 void OnSpeechSoundLevelChanged(int16_t level) override; |
| 86 void OnSpeechRecognitionStateChanged( | 89 void OnSpeechRecognitionStateChanged( |
| 87 SpeechRecognitionState new_state) override; | 90 SpeechRecognitionState new_state) override; |
| 88 void GetSpeechAuthParameters(std::string* auth_scope, | 91 void GetSpeechAuthParameters(std::string* auth_scope, |
| 89 std::string* auth_token) override; | 92 std::string* auth_token) override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 scoped_ptr<SpeechRecognizer> speech_recognizer_; | 160 scoped_ptr<SpeechRecognizer> speech_recognizer_; |
| 158 scoped_ptr<SpeechAuthHelper> speech_auth_helper_; | 161 scoped_ptr<SpeechAuthHelper> speech_auth_helper_; |
| 159 | 162 |
| 160 bool network_available_; | 163 bool network_available_; |
| 161 bool microphone_available_; | 164 bool microphone_available_; |
| 162 #if defined(OS_CHROMEOS) | 165 #if defined(OS_CHROMEOS) |
| 163 scoped_ptr<AudioStatus> audio_status_; | 166 scoped_ptr<AudioStatus> audio_status_; |
| 164 #endif | 167 #endif |
| 165 scoped_ptr<NetworkChangeObserver> network_change_observer_; | 168 scoped_ptr<NetworkChangeObserver> network_change_observer_; |
| 166 | 169 |
| 170 bool search_engine_is_google_; |
| 167 scoped_ptr<net::URLFetcher> doodle_fetcher_; | 171 scoped_ptr<net::URLFetcher> doodle_fetcher_; |
| 168 | 172 |
| 169 base::WeakPtrFactory<StartPageService> weak_factory_; | 173 base::WeakPtrFactory<StartPageService> weak_factory_; |
| 170 | 174 |
| 171 DISALLOW_COPY_AND_ASSIGN(StartPageService); | 175 DISALLOW_COPY_AND_ASSIGN(StartPageService); |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 } // namespace app_list | 178 } // namespace app_list |
| 175 | 179 |
| 176 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 180 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
| OLD | NEW |