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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #include "core/page/FocusController.h" | 149 #include "core/page/FocusController.h" |
150 #include "core/page/FrameTree.h" | 150 #include "core/page/FrameTree.h" |
151 #include "core/page/Page.h" | 151 #include "core/page/Page.h" |
152 #include "core/page/PrintContext.h" | 152 #include "core/page/PrintContext.h" |
153 #include "core/paint/PaintLayer.h" | 153 #include "core/paint/PaintLayer.h" |
154 #include "core/paint/ScopeRecorder.h" | 154 #include "core/paint/ScopeRecorder.h" |
155 #include "core/paint/TransformRecorder.h" | 155 #include "core/paint/TransformRecorder.h" |
156 #include "core/timing/DOMWindowPerformance.h" | 156 #include "core/timing/DOMWindowPerformance.h" |
157 #include "core/timing/Performance.h" | 157 #include "core/timing/Performance.h" |
158 #include "modules/app_banner/AppBannerController.h" | 158 #include "modules/app_banner/AppBannerController.h" |
| 159 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" |
159 #include "modules/bluetooth/BluetoothSupplement.h" | 160 #include "modules/bluetooth/BluetoothSupplement.h" |
160 #include "modules/geolocation/GeolocationController.h" | 161 #include "modules/geolocation/GeolocationController.h" |
161 #include "modules/notifications/NotificationPermissionClient.h" | 162 #include "modules/notifications/NotificationPermissionClient.h" |
162 #include "modules/permissions/PermissionController.h" | 163 #include "modules/permissions/PermissionController.h" |
163 #include "modules/presentation/PresentationController.h" | 164 #include "modules/presentation/PresentationController.h" |
164 #include "modules/push_messaging/PushController.h" | 165 #include "modules/push_messaging/PushController.h" |
165 #include "modules/screen_orientation/ScreenOrientationController.h" | 166 #include "modules/screen_orientation/ScreenOrientationController.h" |
166 #include "modules/vr/VRController.h" | 167 #include "modules/vr/VRController.h" |
167 #include "modules/wake_lock/ScreenWakeLock.h" | 168 #include "modules/wake_lock/ScreenWakeLock.h" |
168 #include "modules/webusb/USBController.h" | 169 #include "modules/webusb/USBController.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 #include "public/web/WebPlugin.h" | 213 #include "public/web/WebPlugin.h" |
213 #include "public/web/WebPrintParams.h" | 214 #include "public/web/WebPrintParams.h" |
214 #include "public/web/WebPrintPresetOptions.h" | 215 #include "public/web/WebPrintPresetOptions.h" |
215 #include "public/web/WebRange.h" | 216 #include "public/web/WebRange.h" |
216 #include "public/web/WebScriptSource.h" | 217 #include "public/web/WebScriptSource.h" |
217 #include "public/web/WebSerializedScriptValue.h" | 218 #include "public/web/WebSerializedScriptValue.h" |
218 #include "public/web/WebTestInterfaceFactory.h" | 219 #include "public/web/WebTestInterfaceFactory.h" |
219 #include "public/web/WebTreeScopeType.h" | 220 #include "public/web/WebTreeScopeType.h" |
220 #include "skia/ext/platform_device.h" | 221 #include "skia/ext/platform_device.h" |
221 #include "web/AssociatedURLLoader.h" | 222 #include "web/AssociatedURLLoader.h" |
| 223 #include "web/AudioOutputDeviceClientImpl.h" |
222 #include "web/CompositionUnderlineVectorBuilder.h" | 224 #include "web/CompositionUnderlineVectorBuilder.h" |
223 #include "web/FindInPageCoordinates.h" | 225 #include "web/FindInPageCoordinates.h" |
224 #include "web/GeolocationClientProxy.h" | 226 #include "web/GeolocationClientProxy.h" |
225 #include "web/LocalFileSystemClient.h" | 227 #include "web/LocalFileSystemClient.h" |
226 #include "web/MIDIClientProxy.h" | 228 #include "web/MIDIClientProxy.h" |
227 #include "web/NavigatorContentUtilsClientImpl.h" | 229 #include "web/NavigatorContentUtilsClientImpl.h" |
228 #include "web/NotificationPermissionClientImpl.h" | 230 #include "web/NotificationPermissionClientImpl.h" |
229 #include "web/RemoteBridgeFrameOwner.h" | 231 #include "web/RemoteBridgeFrameOwner.h" |
230 #include "web/SharedWorkerRepositoryClientImpl.h" | 232 #include "web/SharedWorkerRepositoryClientImpl.h" |
231 #include "web/SuspendableScriptExecutor.h" | 233 #include "web/SuspendableScriptExecutor.h" |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 if (RuntimeEnabledFeatures::presentationEnabled()) | 1709 if (RuntimeEnabledFeatures::presentationEnabled()) |
1708 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1710 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
1709 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1711 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1710 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1712 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
1711 if (RuntimeEnabledFeatures::webUSBEnabled()) | 1713 if (RuntimeEnabledFeatures::webUSBEnabled()) |
1712 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); | 1714 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); |
1713 if (RuntimeEnabledFeatures::webVREnabled()) | 1715 if (RuntimeEnabledFeatures::webVREnabled()) |
1714 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1716 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
1715 if (RuntimeEnabledFeatures::wakeLockEnabled()) | 1717 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
1716 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); | 1718 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); |
| 1719 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1720 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm
pl::create()); |
1717 } | 1721 } |
1718 } | 1722 } |
1719 | 1723 |
1720 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1724 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1721 { | 1725 { |
1722 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(m_frameLoaderClien
tImpl.get(), host, owner); | 1726 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(m_frameLoaderClien
tImpl.get(), host, owner); |
1723 setCoreFrame(frame); | 1727 setCoreFrame(frame); |
1724 frame->tree().setName(name, fallbackName); | 1728 frame->tree().setName(name, fallbackName); |
1725 // We must call init() after m_frame is assigned because it is referenced | 1729 // We must call init() after m_frame is assigned because it is referenced |
1726 // during init(). Note that this may dispatch JS events; the frame may be | 1730 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2208 } | 2212 } |
2209 | 2213 |
2210 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2214 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
2211 { | 2215 { |
2212 if (!frame()) | 2216 if (!frame()) |
2213 return WebSandboxFlags::None; | 2217 return WebSandboxFlags::None; |
2214 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2218 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2215 } | 2219 } |
2216 | 2220 |
2217 } // namespace blink | 2221 } // namespace blink |
OLD | NEW |