Index: content/public/browser/speech_input_manager_delegate.h |
diff --git a/content/public/browser/speech_input_manager_delegate.h b/content/public/browser/speech_input_manager_delegate.h |
deleted file mode 100644 |
index 348bfbe424d317fecf88386a63ff386d1177304a..0000000000000000000000000000000000000000 |
--- a/content/public/browser/speech_input_manager_delegate.h |
+++ /dev/null |
@@ -1,73 +0,0 @@ |
-// 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_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_DELEGATE_H_ |
-#define CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_DELEGATE_H_ |
-#pragma once |
- |
-#include <string> |
- |
-#include "content/public/common/speech_input_result.h" |
- |
-namespace gfx { |
-class Rect; |
-} |
- |
-namespace content { |
- |
-struct SpeechInputResult; |
- |
-// Allows embedders to display the current state of recognition, for getting the |
-// user's permission and for fetching optional request information. |
-class SpeechInputManagerDelegate { |
- public: |
- // Describes the microphone errors that are reported via ShowMicError. |
- enum MicError { |
- MIC_ERROR_NO_DEVICE_AVAILABLE = 0, |
- MIC_ERROR_DEVICE_IN_USE |
- }; |
- |
- virtual ~SpeechInputManagerDelegate() {} |
- |
- // Get the optional request information if available. |
- virtual void GetRequestInfo(bool* can_report_metrics, |
- std::string* request_info) = 0; |
- |
- // Called when recognition has been requested from point |element_rect_| on |
- // the view port for the given caller. The embedder should call the |
- // StartRecognition or CancelRecognition methods on SpeechInutManager in |
- // response. |
- virtual void ShowRecognitionRequested(int caller_id, |
- int render_process_id, |
- int render_view_id, |
- const gfx::Rect& element_rect) = 0; |
- |
- // Called when recognition is starting up. |
- virtual void ShowWarmUp(int caller_id) = 0; |
- |
- // Called when recognition has started. |
- virtual void ShowRecognizing(int caller_id) = 0; |
- |
- // Called when recording has started. |
- virtual void ShowRecording(int caller_id) = 0; |
- |
- // Continuously updated with the current input volume. |
- virtual void ShowInputVolume(int caller_id, |
- float volume, |
- float noise_volume) = 0; |
- |
- // Called when no microphone has been found. |
- virtual void ShowMicError(int caller_id, MicError error) = 0; |
- |
- // Called when there has been a error with the recognition. |
- virtual void ShowRecognizerError(int caller_id, |
- SpeechInputError error) = 0; |
- |
- // Called when recognition has ended or has been canceled. |
- virtual void DoClose(int caller_id) = 0; |
-}; |
- |
-} // namespace content |
- |
-#endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_DELEGATE_H_ |