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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 RecommendedApps* recommended_apps() { return recommended_apps_.get(); } | 66 RecommendedApps* recommended_apps() { return recommended_apps_.get(); } |
67 Profile* profile() { return profile_; } | 67 Profile* profile() { return profile_; } |
68 SpeechRecognitionState state() { return state_; } | 68 SpeechRecognitionState state() { return state_; } |
69 | 69 |
70 // Overridden from app_list::SpeechRecognizerDelegate: | 70 // Overridden from app_list::SpeechRecognizerDelegate: |
71 void OnSpeechResult(const base::string16& query, bool is_final) override; | 71 void OnSpeechResult(const base::string16& query, bool is_final) override; |
72 void OnSpeechSoundLevelChanged(int16_t level) override; | 72 void OnSpeechSoundLevelChanged(int16_t level) override; |
73 void OnSpeechRecognitionStateChanged( | 73 void OnSpeechRecognitionStateChanged( |
74 SpeechRecognitionState new_state) override; | 74 SpeechRecognitionState new_state) override; |
75 content::WebContents* GetSpeechContents() override; | |
76 void GetSpeechAuthParameters(std::string* auth_scope, | 75 void GetSpeechAuthParameters(std::string* auth_scope, |
77 std::string* auth_token) override; | 76 std::string* auth_token) override; |
78 | 77 |
79 protected: | 78 protected: |
80 // Protected for testing. | 79 // Protected for testing. |
81 explicit StartPageService(Profile* profile); | 80 explicit StartPageService(Profile* profile); |
82 ~StartPageService() override; | 81 ~StartPageService() override; |
83 | 82 |
84 private: | 83 private: |
85 friend class StartPageServiceFactory; | 84 friend class StartPageServiceFactory; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #endif | 126 #endif |
128 | 127 |
129 base::WeakPtrFactory<StartPageService> weak_factory_; | 128 base::WeakPtrFactory<StartPageService> weak_factory_; |
130 | 129 |
131 DISALLOW_COPY_AND_ASSIGN(StartPageService); | 130 DISALLOW_COPY_AND_ASSIGN(StartPageService); |
132 }; | 131 }; |
133 | 132 |
134 } // namespace app_list | 133 } // namespace app_list |
135 | 134 |
136 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 135 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
OLD | NEW |