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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 863213002: Revert of Make SpeechRecognitionController per frame instead of per page. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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 | « Source/web/WebLocalFrameImpl.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 662cc1fc599bf7805e3f16d751d35d2c8452c7b4..b7b97528af12f23732ae798d6983665e97f00204 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -148,6 +148,7 @@
#include "web/NavigatorContentUtilsClientImpl.h"
#include "web/PopupContainer.h"
#include "web/PrerendererClientImpl.h"
+#include "web/SpeechRecognitionClientProxy.h"
#include "web/StorageQuotaClientImpl.h"
#include "web/ValidationMessageClientImpl.h"
#include "web/ViewportAnchor.h"
@@ -425,6 +426,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
m_page = adoptPtrWillBeNoop(new Page(pageClients));
MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
+ provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(client ? client->speechRecognizer() : 0));
provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::create(this));
provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create());
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698