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

Unified Diff: content/renderer/render_frame_impl.h

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 11 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/public/test/fake_speech_recognition_manager.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index b6e49ba32f80c4445ac50b67c6973622b60f8487..9965c65d3c5a2442aa2899c399c2d5931855f5e6 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -90,6 +90,7 @@ class RenderViewImpl;
class RenderWidget;
class RenderWidgetFullscreenPepper;
class ScreenOrientationDispatcher;
+class SpeechRecognitionDispatcher;
class UserMediaClientImpl;
enum class SandboxFlags;
struct CommitNavigationParams;
@@ -508,6 +509,7 @@ class CONTENT_EXPORT RenderFrameImpl
const blink::WebAXObject& end_object,
int end_offset);
virtual void didChangeManifest(blink::WebLocalFrame*);
+ virtual blink::WebSpeechRecognizer* speechRecognizer();
// WebMediaPlayerDelegate implementation:
void DidPlay(blink::WebMediaPlayer* player) override;
@@ -837,6 +839,10 @@ class CONTENT_EXPORT RenderFrameImpl
// process.
ManifestManager* manifest_manager_;
+ // The speech recognition dispatcher attached to this frame, lazily
+ // initialized.
+ SpeechRecognitionDispatcher* speech_recognition_dispatcher_;
+
// The current accessibility mode.
AccessibilityMode accessibility_mode_;
« no previous file with comments | « content/public/test/fake_speech_recognition_manager.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698