OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/common/speech_input_result.h" | 9 #include "content/public/common/speech_recognition_traits.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 // An interface to be implemented by consumers interested in receiving | 13 // An interface to be implemented by consumers interested in receiving |
14 // recognition events. | 14 // recognition events. |
15 class SpeechRecognizerDelegate { | 15 class SpeechRecognizerDelegate { |
16 public: | 16 public: |
17 virtual void SetRecognitionResult(int caller_id, | 17 virtual void SetRecognitionResult(int caller_id, |
18 const SpeechInputResult& result) = 0; | 18 const SpeechInputResult& result) = 0; |
19 | 19 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 float volume, | 56 float volume, |
57 float noise_volume) = 0; | 57 float noise_volume) = 0; |
58 | 58 |
59 protected: | 59 protected: |
60 virtual ~SpeechRecognizerDelegate() {} | 60 virtual ~SpeechRecognizerDelegate() {} |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ | 65 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_DELEGATE_H_ |
OLD | NEW |