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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 899853002: Merge 188868 "Revert of Make SpeechRecognitionController per fra..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2272/
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/speech/SpeechRecognitionController.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #include "core/rendering/RenderLayer.h" 145 #include "core/rendering/RenderLayer.h"
146 #include "core/rendering/RenderObject.h" 146 #include "core/rendering/RenderObject.h"
147 #include "core/rendering/RenderTreeAsText.h" 147 #include "core/rendering/RenderTreeAsText.h"
148 #include "core/rendering/RenderView.h" 148 #include "core/rendering/RenderView.h"
149 #include "core/rendering/style/StyleInheritedData.h" 149 #include "core/rendering/style/StyleInheritedData.h"
150 #include "core/timing/Performance.h" 150 #include "core/timing/Performance.h"
151 #include "modules/geolocation/GeolocationController.h" 151 #include "modules/geolocation/GeolocationController.h"
152 #include "modules/notifications/NotificationPermissionClient.h" 152 #include "modules/notifications/NotificationPermissionClient.h"
153 #include "modules/push_messaging/PushController.h" 153 #include "modules/push_messaging/PushController.h"
154 #include "modules/screen_orientation/ScreenOrientationController.h" 154 #include "modules/screen_orientation/ScreenOrientationController.h"
155 #include "modules/speech/SpeechRecognitionController.h"
156 #include "platform/TraceEvent.h" 155 #include "platform/TraceEvent.h"
157 #include "platform/UserGestureIndicator.h" 156 #include "platform/UserGestureIndicator.h"
158 #include "platform/clipboard/ClipboardUtilities.h" 157 #include "platform/clipboard/ClipboardUtilities.h"
159 #include "platform/fonts/FontCache.h" 158 #include "platform/fonts/FontCache.h"
160 #include "platform/graphics/GraphicsContext.h" 159 #include "platform/graphics/GraphicsContext.h"
161 #include "platform/graphics/GraphicsLayerClient.h" 160 #include "platform/graphics/GraphicsLayerClient.h"
162 #include "platform/graphics/skia/SkiaUtils.h" 161 #include "platform/graphics/skia/SkiaUtils.h"
163 #include "platform/heap/Handle.h" 162 #include "platform/heap/Handle.h"
164 #include "platform/network/ResourceRequest.h" 163 #include "platform/network/ResourceRequest.h"
165 #include "platform/scroll/ScrollTypes.h" 164 #include "platform/scroll/ScrollTypes.h"
(...skipping 22 matching lines...) Expand all
188 #include "public/web/WebInputElement.h" 187 #include "public/web/WebInputElement.h"
189 #include "public/web/WebNode.h" 188 #include "public/web/WebNode.h"
190 #include "public/web/WebPerformance.h" 189 #include "public/web/WebPerformance.h"
191 #include "public/web/WebPlugin.h" 190 #include "public/web/WebPlugin.h"
192 #include "public/web/WebPrintParams.h" 191 #include "public/web/WebPrintParams.h"
193 #include "public/web/WebPrintPresetOptions.h" 192 #include "public/web/WebPrintPresetOptions.h"
194 #include "public/web/WebRange.h" 193 #include "public/web/WebRange.h"
195 #include "public/web/WebScriptSource.h" 194 #include "public/web/WebScriptSource.h"
196 #include "public/web/WebSecurityOrigin.h" 195 #include "public/web/WebSecurityOrigin.h"
197 #include "public/web/WebSerializedScriptValue.h" 196 #include "public/web/WebSerializedScriptValue.h"
198 #include "public/web/WebViewClient.h"
199 #include "web/AssociatedURLLoader.h" 197 #include "web/AssociatedURLLoader.h"
200 #include "web/CompositionUnderlineVectorBuilder.h" 198 #include "web/CompositionUnderlineVectorBuilder.h"
201 #include "web/FindInPageCoordinates.h" 199 #include "web/FindInPageCoordinates.h"
202 #include "web/GeolocationClientProxy.h" 200 #include "web/GeolocationClientProxy.h"
203 #include "web/LocalFileSystemClient.h" 201 #include "web/LocalFileSystemClient.h"
204 #include "web/MIDIClientProxy.h" 202 #include "web/MIDIClientProxy.h"
205 #include "web/NotificationPermissionClientImpl.h" 203 #include "web/NotificationPermissionClientImpl.h"
206 #include "web/PageOverlay.h" 204 #include "web/PageOverlay.h"
207 #include "web/SharedWorkerRepositoryClientImpl.h" 205 #include "web/SharedWorkerRepositoryClientImpl.h"
208 #include "web/SpeechRecognitionClientProxy.h"
209 #include "web/SuspendableScriptExecutor.h" 206 #include "web/SuspendableScriptExecutor.h"
210 #include "web/TextFinder.h" 207 #include "web/TextFinder.h"
211 #include "web/WebDataSourceImpl.h" 208 #include "web/WebDataSourceImpl.h"
212 #include "web/WebDevToolsAgentPrivate.h" 209 #include "web/WebDevToolsAgentPrivate.h"
213 #include "web/WebPluginContainerImpl.h" 210 #include "web/WebPluginContainerImpl.h"
214 #include "web/WebRemoteFrameImpl.h" 211 #include "web/WebRemoteFrameImpl.h"
215 #include "web/WebViewImpl.h" 212 #include "web/WebViewImpl.h"
216 #include "wtf/CurrentTime.h" 213 #include "wtf/CurrentTime.h"
217 #include "wtf/HashMap.h" 214 #include "wtf/HashMap.h"
218 #include <algorithm> 215 #include <algorithm>
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1602 if (m_frame) { 1599 if (m_frame) {
1603 if (m_client) 1600 if (m_client)
1604 providePushControllerTo(*m_frame, m_client->pushClient()); 1601 providePushControllerTo(*m_frame, m_client->pushClient());
1605 1602
1606 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl ientImpl::create()); 1603 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl ientImpl::create());
1607 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); 1604 provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
1608 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); 1605 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get());
1609 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get())); 1606 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get()));
1610 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr)); 1607 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr));
1611 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); 1608 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
1612 // FIXME: using WebViewClient as a temporary measure if there is no clie nt on the WebFrame.
1613 if (m_client && m_client->speechRecognizer())
1614 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl ientProxy::create(m_client->speechRecognizer()));
1615 else
1616 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl ientProxy::create(viewImpl()->client() ? viewImpl()->client()->speechRecognizer( ) : nullptr));
1617 1609
1618 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1610 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1619 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr); 1611 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr);
1620 } 1612 }
1621 } 1613 }
1622 1614
1623 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall backName) 1615 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall backName)
1624 { 1616 {
1625 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie ntImpl, host, owner); 1617 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie ntImpl, host, owner);
1626 setCoreFrame(frame); 1618 setCoreFrame(frame);
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 { 2004 {
2013 m_frameWidget = frameWidget; 2005 m_frameWidget = frameWidget;
2014 } 2006 }
2015 2007
2016 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2008 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2017 { 2009 {
2018 return m_frameWidget; 2010 return m_frameWidget;
2019 } 2011 }
2020 2012
2021 } // namespace blink 2013 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechRecognitionController.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698