Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4949)

Unified Diff: chrome/browser/ui/app_list/start_page_observer.h

Issue 105773004: Introduces the speech recognition UI to app_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/start_page_observer.h
diff --git a/chrome/browser/ui/app_list/start_page_observer.h b/chrome/browser/ui/app_list/start_page_observer.h
index c766e003c5d1e6508145892dfe4d57b7cdbae622..8949fa29c3b1a853a38b376d46642fb1de391193 100644
--- a/chrome/browser/ui/app_list/start_page_observer.h
+++ b/chrome/browser/ui/app_list/start_page_observer.h
@@ -6,17 +6,21 @@
#define CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
#include "base/strings/string16.h"
+#include "ui/app_list/speech_ui_model_observer.h"
namespace app_list {
class StartPageObserver {
public:
// Invoked when a search query happens from the start page.
- virtual void OnSearch(const base::string16& query) = 0;
+ virtual void OnSpeechResult(const base::string16& query, bool is_final) = 0;
- // Invoked when the online speech recognition state is changed. |recognizing|
- // is the new state and true when the speech recognition is running currently.
- virtual void OnSpeechRecognitionStateChanged(bool recognizing) = 0;
+ // Invoked when a sound level of speech recognition is changed.
+ virtual void OnSpeechSoundLevelChanged(int16 level) = 0;
+
+ // Invoked when the online speech recognition state is changed.
+ virtual void OnSpeechRecognitionStateChanged(
+ SpeechRecognitionState new_state) = 0;
protected:
virtual ~StartPageObserver() {}
« no previous file with comments | « chrome/browser/ui/app_list/search/search_controller.cc ('k') | chrome/browser/ui/app_list/start_page_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698