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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/app_list/speech_ui_model.h"
9 10
10 namespace app_list { 11 namespace app_list {
11 12
12 class StartPageObserver { 13 class StartPageObserver {
13 public: 14 public:
14 // Invoked when a search query happens from the start page. 15 // Invoked when a search query happens from the start page.
15 virtual void OnSearch(const base::string16& query) = 0; 16 virtual void OnSpeechResult(const base::string16& query, bool is_final) = 0;
16 17
17 // Invoked when the online speech recognition state is changed. |recognizing| 18 // Invoked when a sound level of speech recognition is changed.
18 // is the new state and true when the speech recognition is running currently. 19 virtual void OnSpeechSoundLevelChanged(int16 level) = 0;
19 virtual void OnSpeechRecognitionStateChanged(bool recognizing) = 0; 20
21 // Invoked when the online speech recognition state is changed.
22 virtual void OnSpeechRecognitionStateChanged(
23 SpeechRecognitionState new_state) = 0;
20 24
21 protected: 25 protected:
22 virtual ~StartPageObserver() {} 26 virtual ~StartPageObserver() {}
23 }; 27 };
24 28
25 } // namespace app_list 29 } // namespace app_list
26 30
27 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_ 31 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698