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

Unified Diff: content/renderer/input_tag_speech_dispatcher.h

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 8 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 | « content/renderer/context_menu_params_builder.cc ('k') | content/renderer/input_tag_speech_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input_tag_speech_dispatcher.h
diff --git a/content/renderer/input_tag_speech_dispatcher.h b/content/renderer/input_tag_speech_dispatcher.h
deleted file mode 100644
index ee9dda99e0ef8749e1094e1ed240b1b306913b38..0000000000000000000000000000000000000000
--- a/content/renderer/input_tag_speech_dispatcher.h
+++ /dev/null
@@ -1,56 +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_RENDERER_INPUT_TAG_SPEECH_DISPATCHER_H_
-#define CONTENT_RENDERER_INPUT_TAG_SPEECH_DISPATCHER_H_
-
-#include "base/basictypes.h"
-#include "content/public/common/speech_recognition_result.h"
-#include "content/public/renderer/render_view_observer.h"
-#include "third_party/WebKit/public/web/WebSpeechInputController.h"
-
-namespace blink {
-class WebSpeechInputListener;
-}
-
-namespace content {
-class RenderViewImpl;
-struct SpeechRecognitionResult;
-
-// InputTagSpeechDispatcher is a delegate for messages used by WebKit. It's
-// the complement of InputTagSpeechDispatcherHost (owned by RenderViewHost).
-class InputTagSpeechDispatcher : public RenderViewObserver,
- public blink::WebSpeechInputController {
- public:
- InputTagSpeechDispatcher(RenderViewImpl* render_view,
- blink::WebSpeechInputListener* listener);
-
- private:
- // RenderView::Observer implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- // blink::WebSpeechInputController.
- virtual bool startRecognition(int request_id,
- const blink::WebRect& element_rect,
- const blink::WebString& language,
- const blink::WebString& grammar,
- const blink::WebSecurityOrigin& origin);
-
- virtual void cancelRecognition(int request_id);
- virtual void stopRecording(int request_id);
-
- void OnSpeechRecognitionResults(
- int request_id, const SpeechRecognitionResults& results);
- void OnSpeechRecordingComplete(int request_id);
- void OnSpeechRecognitionComplete(int request_id);
- void OnSpeechRecognitionToggleSpeechInput();
-
- blink::WebSpeechInputListener* listener_;
-
- DISALLOW_COPY_AND_ASSIGN(InputTagSpeechDispatcher);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_INPUT_TAG_SPEECH_DISPATCHER_H_
« no previous file with comments | « content/renderer/context_menu_params_builder.cc ('k') | content/renderer/input_tag_speech_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698