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

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: start_page existence 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..a8624cc4a2b1f2289c3e987df3b7b4145a93bb35 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.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() {}

Powered by Google App Engine
This is Rietveld 408576698