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

Unified Diff: chrome/renderer/speech_input_dispatcher.h

Issue 6703003: Move a bunch of html5 renderer code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/renderer/renderer_webidbtransaction_impl.cc ('k') | chrome/renderer/speech_input_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/speech_input_dispatcher.h
===================================================================
--- chrome/renderer/speech_input_dispatcher.h (revision 78436)
+++ chrome/renderer/speech_input_dispatcher.h (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2010 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 CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_
-#define CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_
-
-#include "base/basictypes.h"
-#include "chrome/renderer/render_view_observer.h"
-#include "content/common/speech_input_result.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputController.h"
-
-class GURL;
-
-namespace WebKit {
-class WebSpeechInputListener;
-}
-
-// SpeechInputDispatcher is a delegate for speech input messages used by WebKit.
-// It's the complement of SpeechInputDispatcherHost (owned by RenderViewHost).
-class SpeechInputDispatcher : public RenderViewObserver,
- public WebKit::WebSpeechInputController {
- public:
- SpeechInputDispatcher(RenderView* render_view,
- WebKit::WebSpeechInputListener* listener);
-
- private:
- // RenderView::Observer implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- // WebKit::WebSpeechInputController.
- virtual bool startRecognition(int request_id,
- const WebKit::WebRect& element_rect,
- const WebKit::WebString& language,
- const WebKit::WebString& grammar,
- const WebKit::WebSecurityOrigin& origin);
-
- virtual void cancelRecognition(int request_id);
- virtual void stopRecording(int request_id);
-
- void OnSpeechRecognitionResult(
- int request_id, const speech_input::SpeechInputResultArray& result);
- void OnSpeechRecordingComplete(int request_id);
- void OnSpeechRecognitionComplete(int request_id);
-
- WebKit::WebSpeechInputListener* listener_;
-
- DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcher);
-};
-
-#endif // CHROME_RENDERER_SPEECH_INPUT_DISPATCHER_H_
« no previous file with comments | « chrome/renderer/renderer_webidbtransaction_impl.cc ('k') | chrome/renderer/speech_input_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698