diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 19:03:34 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 19:03:34 +0000 |
commit | 4e8d5c8ada6452b59975f9da496d7c8b4858763e (patch) | |
tree | 65d033d479612af90e2eb487dd6442096f71cfeb /content/browser/speech/speech_input_manager_delegate.h | |
parent | ac8590d09c85a19107294e1d5d3b554bd9005132 (diff) | |
download | chromium_src-4e8d5c8ada6452b59975f9da496d7c8b4858763e.zip chromium_src-4e8d5c8ada6452b59975f9da496d7c8b4858763e.tar.gz chromium_src-4e8d5c8ada6452b59975f9da496d7c8b4858763e.tar.bz2 |
Extract SpeechInputManager delegate into its own header and put it in the content namespace.
BUG=98716
R=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9413017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_input_manager_delegate.h')
-rw-r--r-- | content/browser/speech/speech_input_manager_delegate.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/content/browser/speech/speech_input_manager_delegate.h b/content/browser/speech/speech_input_manager_delegate.h new file mode 100644 index 0000000..5d0ac18 --- /dev/null +++ b/content/browser/speech/speech_input_manager_delegate.h @@ -0,0 +1,29 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_DELEGATE_H_ +#define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_DELEGATE_H_ +#pragma once + +namespace content { + +struct SpeechInputResult; + +// Implemented by the dispatcher host to relay events to the render views. +class SpeechInputManagerDelegate { + public: + virtual void SetRecognitionResult(int caller_id, + const SpeechInputResult& result) = 0; + + virtual void DidCompleteRecording(int caller_id) = 0; + + virtual void DidCompleteRecognition(int caller_id) = 0; + + protected: + virtual ~SpeechInputManagerDelegate() {} +}; + +} // namespace content + +#endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_DELEGATE_H_ |