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

Unified Diff: content/public/browser/speech_recognition_manager_delegate.h

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/speech_recognition_manager_delegate.h
diff --git a/content/public/browser/speech_input_manager_delegate.h b/content/public/browser/speech_recognition_manager_delegate.h
similarity index 81%
rename from content/public/browser/speech_input_manager_delegate.h
rename to content/public/browser/speech_recognition_manager_delegate.h
index 348bfbe424d317fecf88386a63ff386d1177304a..dfe04c7d5717a6a4126b25f1d90a58938a7564d2 100644
--- a/content/public/browser/speech_input_manager_delegate.h
+++ b/content/public/browser/speech_recognition_manager_delegate.h
@@ -2,13 +2,13 @@
// 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_
+#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
+#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
#pragma once
#include <string>
-#include "content/public/common/speech_input_result.h"
+#include "content/public/common/speech_recognition_result.h"
namespace gfx {
class Rect;
@@ -16,11 +16,11 @@ class Rect;
namespace content {
-struct SpeechInputResult;
+struct SpeechRecognitionResult;
// Allows embedders to display the current state of recognition, for getting the
// user's permission and for fetching optional request information.
-class SpeechInputManagerDelegate {
+class SpeechRecognitionManagerDelegate {
public:
// Describes the microphone errors that are reported via ShowMicError.
enum MicError {
@@ -28,7 +28,7 @@ class SpeechInputManagerDelegate {
MIC_ERROR_DEVICE_IN_USE
};
- virtual ~SpeechInputManagerDelegate() {}
+ virtual ~SpeechRecognitionManagerDelegate() {}
// Get the optional request information if available.
virtual void GetRequestInfo(bool* can_report_metrics,
@@ -62,7 +62,7 @@ class SpeechInputManagerDelegate {
// Called when there has been a error with the recognition.
virtual void ShowRecognizerError(int caller_id,
- SpeechInputError error) = 0;
+ SpeechRecognitionErrorCode error) = 0;
// Called when recognition has ended or has been canceled.
virtual void DoClose(int caller_id) = 0;
@@ -70,4 +70,4 @@ class SpeechInputManagerDelegate {
} // namespace content
-#endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_MANAGER_DELEGATE_H_
+#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
« no previous file with comments | « content/public/browser/speech_recognition_manager.h ('k') | content/public/browser/speech_recognition_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698