From 4e8d5c8ada6452b59975f9da496d7c8b4858763e Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Fri, 17 Feb 2012 19:03:34 +0000 Subject: 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 --- .../browser/speech/speech_input_manager_delegate.h | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 content/browser/speech/speech_input_manager_delegate.h (limited to 'content/browser/speech/speech_input_manager_delegate.h') 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_ -- cgit v1.1