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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 #include "public/web/WebPlugin.h" | 212 #include "public/web/WebPlugin.h" |
212 #include "public/web/WebPrintParams.h" | 213 #include "public/web/WebPrintParams.h" |
213 #include "public/web/WebPrintPresetOptions.h" | 214 #include "public/web/WebPrintPresetOptions.h" |
214 #include "public/web/WebRange.h" | 215 #include "public/web/WebRange.h" |
215 #include "public/web/WebScriptSource.h" | 216 #include "public/web/WebScriptSource.h" |
216 #include "public/web/WebSerializedScriptValue.h" | 217 #include "public/web/WebSerializedScriptValue.h" |
217 #include "public/web/WebTestInterfaceFactory.h" | 218 #include "public/web/WebTestInterfaceFactory.h" |
218 #include "public/web/WebTreeScopeType.h" | 219 #include "public/web/WebTreeScopeType.h" |
219 #include "skia/ext/platform_device.h" | 220 #include "skia/ext/platform_device.h" |
220 #include "web/AssociatedURLLoader.h" | 221 #include "web/AssociatedURLLoader.h" |
| 222 #include "web/AudioOutputDeviceClientImpl.h" |
221 #include "web/CompositionUnderlineVectorBuilder.h" | 223 #include "web/CompositionUnderlineVectorBuilder.h" |
222 #include "web/FindInPageCoordinates.h" | 224 #include "web/FindInPageCoordinates.h" |
223 #include "web/GeolocationClientProxy.h" | 225 #include "web/GeolocationClientProxy.h" |
224 #include "web/LocalFileSystemClient.h" | 226 #include "web/LocalFileSystemClient.h" |
225 #include "web/MIDIClientProxy.h" | 227 #include "web/MIDIClientProxy.h" |
226 #include "web/NavigatorContentUtilsClientImpl.h" | 228 #include "web/NavigatorContentUtilsClientImpl.h" |
227 #include "web/NotificationPermissionClientImpl.h" | 229 #include "web/NotificationPermissionClientImpl.h" |
228 #include "web/RemoteBridgeFrameOwner.h" | 230 #include "web/RemoteBridgeFrameOwner.h" |
229 #include "web/SharedWorkerRepositoryClientImpl.h" | 231 #include "web/SharedWorkerRepositoryClientImpl.h" |
230 #include "web/SuspendableScriptExecutor.h" | 232 #include "web/SuspendableScriptExecutor.h" |
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 if (RuntimeEnabledFeatures::presentationEnabled()) | 1723 if (RuntimeEnabledFeatures::presentationEnabled()) |
1722 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1724 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
1723 if (RuntimeEnabledFeatures::permissionsEnabled()) | 1725 if (RuntimeEnabledFeatures::permissionsEnabled()) |
1724 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); | 1726 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
1725 if (RuntimeEnabledFeatures::webUSBEnabled()) | 1727 if (RuntimeEnabledFeatures::webUSBEnabled()) |
1726 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); | 1728 USBController::provideTo(*m_frame, m_client ? m_client->usbClient()
: nullptr); |
1727 if (RuntimeEnabledFeatures::webVREnabled()) | 1729 if (RuntimeEnabledFeatures::webVREnabled()) |
1728 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); | 1730 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient()
: nullptr); |
1729 if (RuntimeEnabledFeatures::wakeLockEnabled()) | 1731 if (RuntimeEnabledFeatures::wakeLockEnabled()) |
1730 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); | 1732 ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->wakeLockCli
ent() : nullptr); |
| 1733 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1734 provideAudioOutputDeviceClientTo(*m_frame, AudioOutputDeviceClientIm
pl::create()); |
1731 } | 1735 } |
1732 } | 1736 } |
1733 | 1737 |
1734 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1738 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1735 { | 1739 { |
1736 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(m_frameLoaderClien
tImpl.get(), host, owner); | 1740 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(m_frameLoaderClien
tImpl.get(), host, owner); |
1737 setCoreFrame(frame); | 1741 setCoreFrame(frame); |
1738 frame->tree().setName(name, fallbackName); | 1742 frame->tree().setName(name, fallbackName); |
1739 // We must call init() after m_frame is assigned because it is referenced | 1743 // We must call init() after m_frame is assigned because it is referenced |
1740 // during init(). Note that this may dispatch JS events; the frame may be | 1744 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2203 } | 2207 } |
2204 | 2208 |
2205 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const | 2209 WebSandboxFlags WebLocalFrameImpl::effectiveSandboxFlags() const |
2206 { | 2210 { |
2207 if (!frame()) | 2211 if (!frame()) |
2208 return WebSandboxFlags::None; | 2212 return WebSandboxFlags::None; |
2209 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); | 2213 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags(
)); |
2210 } | 2214 } |
2211 | 2215 |
2212 } // namespace blink | 2216 } // namespace blink |
OLD | NEW |