| OLD | NEW |
| 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 Loading... |
| 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/ScriptForbiddenScope.h" | 155 #include "platform/ScriptForbiddenScope.h" |
| 157 #include "platform/TraceEvent.h" | 156 #include "platform/TraceEvent.h" |
| 158 #include "platform/UserGestureIndicator.h" | 157 #include "platform/UserGestureIndicator.h" |
| 159 #include "platform/clipboard/ClipboardUtilities.h" | 158 #include "platform/clipboard/ClipboardUtilities.h" |
| 160 #include "platform/fonts/FontCache.h" | 159 #include "platform/fonts/FontCache.h" |
| 161 #include "platform/graphics/GraphicsContext.h" | 160 #include "platform/graphics/GraphicsContext.h" |
| 162 #include "platform/graphics/GraphicsLayerClient.h" | 161 #include "platform/graphics/GraphicsLayerClient.h" |
| 163 #include "platform/graphics/skia/SkiaUtils.h" | 162 #include "platform/graphics/skia/SkiaUtils.h" |
| 164 #include "platform/heap/Handle.h" | 163 #include "platform/heap/Handle.h" |
| 165 #include "platform/network/ResourceRequest.h" | 164 #include "platform/network/ResourceRequest.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 189 #include "public/web/WebInputElement.h" | 188 #include "public/web/WebInputElement.h" |
| 190 #include "public/web/WebNode.h" | 189 #include "public/web/WebNode.h" |
| 191 #include "public/web/WebPerformance.h" | 190 #include "public/web/WebPerformance.h" |
| 192 #include "public/web/WebPlugin.h" | 191 #include "public/web/WebPlugin.h" |
| 193 #include "public/web/WebPrintParams.h" | 192 #include "public/web/WebPrintParams.h" |
| 194 #include "public/web/WebPrintPresetOptions.h" | 193 #include "public/web/WebPrintPresetOptions.h" |
| 195 #include "public/web/WebRange.h" | 194 #include "public/web/WebRange.h" |
| 196 #include "public/web/WebScriptSource.h" | 195 #include "public/web/WebScriptSource.h" |
| 197 #include "public/web/WebSecurityOrigin.h" | 196 #include "public/web/WebSecurityOrigin.h" |
| 198 #include "public/web/WebSerializedScriptValue.h" | 197 #include "public/web/WebSerializedScriptValue.h" |
| 199 #include "public/web/WebViewClient.h" | |
| 200 #include "web/AssociatedURLLoader.h" | 198 #include "web/AssociatedURLLoader.h" |
| 201 #include "web/CompositionUnderlineVectorBuilder.h" | 199 #include "web/CompositionUnderlineVectorBuilder.h" |
| 202 #include "web/FindInPageCoordinates.h" | 200 #include "web/FindInPageCoordinates.h" |
| 203 #include "web/GeolocationClientProxy.h" | 201 #include "web/GeolocationClientProxy.h" |
| 204 #include "web/LocalFileSystemClient.h" | 202 #include "web/LocalFileSystemClient.h" |
| 205 #include "web/MIDIClientProxy.h" | 203 #include "web/MIDIClientProxy.h" |
| 206 #include "web/NotificationPermissionClientImpl.h" | 204 #include "web/NotificationPermissionClientImpl.h" |
| 207 #include "web/PageOverlay.h" | 205 #include "web/PageOverlay.h" |
| 208 #include "web/SharedWorkerRepositoryClientImpl.h" | 206 #include "web/SharedWorkerRepositoryClientImpl.h" |
| 209 #include "web/SpeechRecognitionClientProxy.h" | |
| 210 #include "web/SuspendableScriptExecutor.h" | 207 #include "web/SuspendableScriptExecutor.h" |
| 211 #include "web/TextFinder.h" | 208 #include "web/TextFinder.h" |
| 212 #include "web/WebDataSourceImpl.h" | 209 #include "web/WebDataSourceImpl.h" |
| 213 #include "web/WebDevToolsAgentPrivate.h" | 210 #include "web/WebDevToolsAgentPrivate.h" |
| 214 #include "web/WebPluginContainerImpl.h" | 211 #include "web/WebPluginContainerImpl.h" |
| 215 #include "web/WebRemoteFrameImpl.h" | 212 #include "web/WebRemoteFrameImpl.h" |
| 216 #include "web/WebViewImpl.h" | 213 #include "web/WebViewImpl.h" |
| 217 #include "wtf/CurrentTime.h" | 214 #include "wtf/CurrentTime.h" |
| 218 #include "wtf/HashMap.h" | 215 #include "wtf/HashMap.h" |
| 219 #include <algorithm> | 216 #include <algorithm> |
| (...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 if (m_frame) { | 1600 if (m_frame) { |
| 1604 if (m_client) | 1601 if (m_client) |
| 1605 providePushControllerTo(*m_frame, m_client->pushClient()); | 1602 providePushControllerTo(*m_frame, m_client->pushClient()); |
| 1606 | 1603 |
| 1607 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); | 1604 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); |
| 1608 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1605 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
| 1609 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1606 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
| 1610 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1607 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
| 1611 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1608 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
| 1612 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1609 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
| 1613 // FIXME: using WebViewClient as a temporary measure if there is no clie
nt on the WebFrame. | |
| 1614 if (m_client && m_client->speechRecognizer()) | |
| 1615 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(m_client->speechRecognizer())); | |
| 1616 else | |
| 1617 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(viewImpl()->client() ? viewImpl()->client()->speechRecognizer(
) : nullptr)); | |
| 1618 | 1610 |
| 1619 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1611 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1620 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1612 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1621 } | 1613 } |
| 1622 } | 1614 } |
| 1623 | 1615 |
| 1624 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1616 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
| 1625 { | 1617 { |
| 1626 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1618 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
| 1627 setCoreFrame(frame); | 1619 setCoreFrame(frame); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 { | 2005 { |
| 2014 m_frameWidget = frameWidget; | 2006 m_frameWidget = frameWidget; |
| 2015 } | 2007 } |
| 2016 | 2008 |
| 2017 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2009 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2018 { | 2010 { |
| 2019 return m_frameWidget; | 2011 return m_frameWidget; |
| 2020 } | 2012 } |
| 2021 | 2013 |
| 2022 } // namespace blink | 2014 } // namespace blink |
| OLD | NEW |