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

Unified Diff: content/renderer/speech_recognition_dispatcher.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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/renderer/speech_recognition_dispatcher.h
===================================================================
--- content/renderer/speech_recognition_dispatcher.h (revision 163045)
+++ content/renderer/speech_recognition_dispatcher.h (working copy)
@@ -13,17 +13,15 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionHandle.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizer.h"
-class RenderViewImpl;
-
namespace content {
+class RenderViewImpl;
struct SpeechRecognitionError;
struct SpeechRecognitionResult;
-}
// SpeechRecognitionDispatcher is a delegate for methods used by WebKit for
// scripted JS speech APIs. It's the complement of
// SpeechRecognitionDispatcherHost (owned by RenderViewHost).
-class SpeechRecognitionDispatcher : public content::RenderViewObserver,
+class SpeechRecognitionDispatcher : public RenderViewObserver,
public WebKit::WebSpeechRecognizer {
public:
explicit SpeechRecognitionDispatcher(RenderViewImpl* render_view);
@@ -47,11 +45,9 @@
void OnSoundStarted(int request_id);
void OnSoundEnded(int request_id);
void OnAudioEnded(int request_id);
- void OnErrorOccurred(int request_id,
- const content::SpeechRecognitionError& error);
+ void OnErrorOccurred(int request_id, const SpeechRecognitionError& error);
void OnRecognitionEnded(int request_id);
- void OnResultRetrieved(int request_id,
- const content::SpeechRecognitionResult& result);
+ void OnResultRetrieved(int request_id, const SpeechRecognitionResult& result);
int GetOrCreateIDForHandle(const WebKit::WebSpeechRecognitionHandle& handle);
bool HandleExists(const WebKit::WebSpeechRecognitionHandle& handle);
@@ -67,4 +63,6 @@
DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher);
};
+} // namespace content
+
#endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/renderer/speech_recognition_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698