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

Side by Side Diff: ui/app_list/speech_ui_model_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/speech_ui_model.cc ('k') | ui/app_list/test/app_list_test_view_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_SPEECH_UI_MODEL_OBSERVER_H_
6 #define UI_APP_LIST_SPEECH_UI_MODEL_OBSERVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/strings/string16.h"
10 #include "ui/app_list/app_list_export.h"
11
12 namespace app_list {
13
14 enum SpeechRecognitionState {
15 SPEECH_RECOGNITION_NOT_STARTED = 0,
16 SPEECH_RECOGNITION_ON,
17 SPEECH_RECOGNITION_IN_SPEECH,
18 };
19
20 class APP_LIST_EXPORT SpeechUIModelObserver {
21 public:
22 // Invoked when sound level for the speech recognition has changed.
23 virtual void OnSpeechSoundLevelChanged(int16 level) {}
24
25 // Invoked when a speech result arrives. |is_final| is true only when the
26 // speech result is final.
27 virtual void OnSpeechResult(const base::string16& result, bool is_final) {}
28
29 // Invoked when the state of speech recognition is changed.
30 virtual void OnSpeechRecognitionStateChanged(
31 SpeechRecognitionState new_state) {}
32
33 protected:
34 virtual ~SpeechUIModelObserver() {}
35 };
36
37 } // namespace app_list
38
39 #endif // UI_APP_LIST_SPEECH_UI_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/app_list/speech_ui_model.cc ('k') | ui/app_list/test/app_list_test_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698