| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "core/origin_trials/OriginTrials.h" | 52 #include "core/origin_trials/OriginTrials.h" |
| 53 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
| 54 #include "core/page/WindowFeatures.h" | 54 #include "core/page/WindowFeatures.h" |
| 55 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" | 55 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" |
| 56 #include "modules/device_light/DeviceLightController.h" | 56 #include "modules/device_light/DeviceLightController.h" |
| 57 #include "modules/device_orientation/DeviceMotionController.h" | 57 #include "modules/device_orientation/DeviceMotionController.h" |
| 58 #include "modules/device_orientation/DeviceOrientationAbsoluteController.h" | 58 #include "modules/device_orientation/DeviceOrientationAbsoluteController.h" |
| 59 #include "modules/device_orientation/DeviceOrientationController.h" | 59 #include "modules/device_orientation/DeviceOrientationController.h" |
| 60 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" | 60 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
| 61 #include "modules/gamepad/NavigatorGamepad.h" | 61 #include "modules/gamepad/NavigatorGamepad.h" |
| 62 #include "modules/presentation/PresentationReceiver.h" |
| 62 #include "modules/remoteplayback/HTMLMediaElementRemotePlayback.h" | 63 #include "modules/remoteplayback/HTMLMediaElementRemotePlayback.h" |
| 63 #include "modules/remoteplayback/RemotePlayback.h" | 64 #include "modules/remoteplayback/RemotePlayback.h" |
| 64 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 65 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
| 65 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" | 66 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" |
| 66 #include "modules/storage/DOMWindowStorageController.h" | 67 #include "modules/storage/DOMWindowStorageController.h" |
| 67 #include "modules/vr/NavigatorVR.h" | 68 #include "modules/vr/NavigatorVR.h" |
| 68 #include "platform/Histogram.h" | 69 #include "platform/Histogram.h" |
| 69 #include "platform/RuntimeEnabledFeatures.h" | 70 #include "platform/RuntimeEnabledFeatures.h" |
| 70 #include "platform/UserGestureIndicator.h" | 71 #include "platform/UserGestureIndicator.h" |
| 71 #include "platform/exported/WrappedResourceRequest.h" | 72 #include "platform/exported/WrappedResourceRequest.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 DeviceOrientationController::From(*document); | 153 DeviceOrientationController::From(*document); |
| 153 DeviceOrientationAbsoluteController::From(*document); | 154 DeviceOrientationAbsoluteController::From(*document); |
| 154 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 155 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 155 DeviceLightController::From(*document); | 156 DeviceLightController::From(*document); |
| 156 NavigatorGamepad::From(*document); | 157 NavigatorGamepad::From(*document); |
| 157 NavigatorServiceWorker::From(*document); | 158 NavigatorServiceWorker::From(*document); |
| 158 DOMWindowStorageController::From(*document); | 159 DOMWindowStorageController::From(*document); |
| 159 if (RuntimeEnabledFeatures::webVREnabled() || | 160 if (RuntimeEnabledFeatures::webVREnabled() || |
| 160 OriginTrials::webVREnabled(document->GetExecutionContext())) | 161 OriginTrials::webVREnabled(document->GetExecutionContext())) |
| 161 NavigatorVR::From(*document); | 162 NavigatorVR::From(*document); |
| 163 if (RuntimeEnabledFeatures::presentationEnabled() && |
| 164 web_frame_->GetFrame()->GetSettings()->GetPresentationReceiver()) { |
| 165 // Call this in order to ensure the object is created. |
| 166 PresentationReceiver::From(*document); |
| 167 } |
| 162 } | 168 } |
| 163 } | 169 } |
| 164 // FIXME: when extensions go out of process, this whole concept stops working. | 170 // FIXME: when extensions go out of process, this whole concept stops working. |
| 165 WebDevToolsFrontendImpl* dev_tools_frontend = | 171 WebDevToolsFrontendImpl* dev_tools_frontend = |
| 166 web_frame_->Top()->IsWebLocalFrame() | 172 web_frame_->Top()->IsWebLocalFrame() |
| 167 ? ToWebLocalFrameImpl(web_frame_->Top())->DevToolsFrontend() | 173 ? ToWebLocalFrameImpl(web_frame_->Top())->DevToolsFrontend() |
| 168 : nullptr; | 174 : nullptr; |
| 169 if (dev_tools_frontend) | 175 if (dev_tools_frontend) |
| 170 dev_tools_frontend->DidClearWindowObject(web_frame_); | 176 dev_tools_frontend->DidClearWindowObject(web_frame_); |
| 171 } | 177 } |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 void LocalFrameClientImpl::AbortClientNavigation() { | 978 void LocalFrameClientImpl::AbortClientNavigation() { |
| 973 if (web_frame_->Client()) | 979 if (web_frame_->Client()) |
| 974 web_frame_->Client()->AbortClientNavigation(); | 980 web_frame_->Client()->AbortClientNavigation(); |
| 975 } | 981 } |
| 976 | 982 |
| 977 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 983 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
| 978 return web_frame_->GetTextCheckerClient(); | 984 return web_frame_->GetTextCheckerClient(); |
| 979 } | 985 } |
| 980 | 986 |
| 981 } // namespace blink | 987 } // namespace blink |
| OLD | NEW |