| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "core/input/EventHandler.h" | 47 #include "core/input/EventHandler.h" |
| 48 #include "core/layout/HitTestResult.h" | 48 #include "core/layout/HitTestResult.h" |
| 49 #include "core/loader/DocumentLoader.h" | 49 #include "core/loader/DocumentLoader.h" |
| 50 #include "core/loader/FrameLoadRequest.h" | 50 #include "core/loader/FrameLoadRequest.h" |
| 51 #include "core/loader/FrameLoader.h" | 51 #include "core/loader/FrameLoader.h" |
| 52 #include "core/loader/HistoryItem.h" | 52 #include "core/loader/HistoryItem.h" |
| 53 #include "core/origin_trials/OriginTrials.h" | 53 #include "core/origin_trials/OriginTrials.h" |
| 54 #include "core/page/Page.h" | 54 #include "core/page/Page.h" |
| 55 #include "core/page/WindowFeatures.h" | 55 #include "core/page/WindowFeatures.h" |
| 56 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" | 56 #include "modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h" |
| 57 #include "modules/device_light/DeviceLightController.h" | |
| 58 #include "modules/device_orientation/DeviceMotionController.h" | 57 #include "modules/device_orientation/DeviceMotionController.h" |
| 59 #include "modules/device_orientation/DeviceOrientationAbsoluteController.h" | 58 #include "modules/device_orientation/DeviceOrientationAbsoluteController.h" |
| 60 #include "modules/device_orientation/DeviceOrientationController.h" | 59 #include "modules/device_orientation/DeviceOrientationController.h" |
| 61 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" | 60 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
| 62 #include "modules/gamepad/NavigatorGamepad.h" | 61 #include "modules/gamepad/NavigatorGamepad.h" |
| 63 #include "modules/presentation/PresentationReceiver.h" | 62 #include "modules/presentation/PresentationReceiver.h" |
| 64 #include "modules/remoteplayback/HTMLMediaElementRemotePlayback.h" | 63 #include "modules/remoteplayback/HTMLMediaElementRemotePlayback.h" |
| 65 #include "modules/remoteplayback/RemotePlayback.h" | 64 #include "modules/remoteplayback/RemotePlayback.h" |
| 66 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 65 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
| 67 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" | 66 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } | 145 } |
| 147 | 146 |
| 148 void LocalFrameClientImpl::DispatchDidClearWindowObjectInMainWorld() { | 147 void LocalFrameClientImpl::DispatchDidClearWindowObjectInMainWorld() { |
| 149 if (web_frame_->Client()) { | 148 if (web_frame_->Client()) { |
| 150 web_frame_->Client()->DidClearWindowObject(); | 149 web_frame_->Client()->DidClearWindowObject(); |
| 151 Document* document = web_frame_->GetFrame()->GetDocument(); | 150 Document* document = web_frame_->GetFrame()->GetDocument(); |
| 152 if (document) { | 151 if (document) { |
| 153 DeviceMotionController::From(*document); | 152 DeviceMotionController::From(*document); |
| 154 DeviceOrientationController::From(*document); | 153 DeviceOrientationController::From(*document); |
| 155 DeviceOrientationAbsoluteController::From(*document); | 154 DeviceOrientationAbsoluteController::From(*document); |
| 156 if (RuntimeEnabledFeatures::deviceLightEnabled()) | |
| 157 DeviceLightController::From(*document); | |
| 158 NavigatorGamepad::From(*document); | 155 NavigatorGamepad::From(*document); |
| 159 NavigatorServiceWorker::From(*document); | 156 NavigatorServiceWorker::From(*document); |
| 160 DOMWindowStorageController::From(*document); | 157 DOMWindowStorageController::From(*document); |
| 161 if (RuntimeEnabledFeatures::webVREnabled() || | 158 if (RuntimeEnabledFeatures::webVREnabled() || |
| 162 OriginTrials::webVREnabled(document->GetExecutionContext())) | 159 OriginTrials::webVREnabled(document->GetExecutionContext())) |
| 163 NavigatorVR::From(*document); | 160 NavigatorVR::From(*document); |
| 164 if (RuntimeEnabledFeatures::presentationEnabled() && | 161 if (RuntimeEnabledFeatures::presentationEnabled() && |
| 165 web_frame_->GetFrame()->GetSettings()->GetPresentationReceiver()) { | 162 web_frame_->GetFrame()->GetSettings()->GetPresentationReceiver()) { |
| 166 // Call this in order to ensure the object is created. | 163 // Call this in order to ensure the object is created. |
| 167 PresentationReceiver::From(*document); | 164 PresentationReceiver::From(*document); |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 void LocalFrameClientImpl::AbortClientNavigation() { | 992 void LocalFrameClientImpl::AbortClientNavigation() { |
| 996 if (web_frame_->Client()) | 993 if (web_frame_->Client()) |
| 997 web_frame_->Client()->AbortClientNavigation(); | 994 web_frame_->Client()->AbortClientNavigation(); |
| 998 } | 995 } |
| 999 | 996 |
| 1000 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 997 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
| 1001 return web_frame_->GetTextCheckerClient(); | 998 return web_frame_->GetTextCheckerClient(); |
| 1002 } | 999 } |
| 1003 | 1000 |
| 1004 } // namespace blink | 1001 } // namespace blink |
| OLD | NEW |