| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/page/EventHandler.h" | 49 #include "core/page/EventHandler.h" |
| 50 #include "core/page/Page.h" | 50 #include "core/page/Page.h" |
| 51 #include "core/page/WindowFeatures.h" | 51 #include "core/page/WindowFeatures.h" |
| 52 #include "core/rendering/HitTestResult.h" | 52 #include "core/rendering/HitTestResult.h" |
| 53 #include "core/storage/DOMWindowStorageController.h" | 53 #include "core/storage/DOMWindowStorageController.h" |
| 54 #include "modules/device_light/DeviceLightController.h" | 54 #include "modules/device_light/DeviceLightController.h" |
| 55 #include "modules/device_orientation/DeviceMotionController.h" | 55 #include "modules/device_orientation/DeviceMotionController.h" |
| 56 #include "modules/device_orientation/DeviceOrientationController.h" | 56 #include "modules/device_orientation/DeviceOrientationController.h" |
| 57 #include "modules/gamepad/NavigatorGamepad.h" | 57 #include "modules/gamepad/NavigatorGamepad.h" |
| 58 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 58 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
| 59 #include "modules/vr/NavigatorVRDevice.h" |
| 59 #include "platform/MIMETypeRegistry.h" | 60 #include "platform/MIMETypeRegistry.h" |
| 60 #include "platform/RuntimeEnabledFeatures.h" | 61 #include "platform/RuntimeEnabledFeatures.h" |
| 61 #include "platform/UserGestureIndicator.h" | 62 #include "platform/UserGestureIndicator.h" |
| 62 #include "platform/exported/WrappedResourceRequest.h" | 63 #include "platform/exported/WrappedResourceRequest.h" |
| 63 #include "platform/exported/WrappedResourceResponse.h" | 64 #include "platform/exported/WrappedResourceResponse.h" |
| 64 #include "platform/network/HTTPParsers.h" | 65 #include "platform/network/HTTPParsers.h" |
| 65 #include "platform/plugins/PluginData.h" | 66 #include "platform/plugins/PluginData.h" |
| 66 #include "public/platform/Platform.h" | 67 #include "public/platform/Platform.h" |
| 67 #include "public/platform/WebApplicationCacheHost.h" | 68 #include "public/platform/WebApplicationCacheHost.h" |
| 68 #include "public/platform/WebMimeRegistry.h" | 69 #include "public/platform/WebMimeRegistry.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 { | 121 { |
| 121 if (m_webFrame->client()) { | 122 if (m_webFrame->client()) { |
| 122 m_webFrame->client()->didClearWindowObject(m_webFrame); | 123 m_webFrame->client()->didClearWindowObject(m_webFrame); |
| 123 Document* document = m_webFrame->frame()->document(); | 124 Document* document = m_webFrame->frame()->document(); |
| 124 if (document) { | 125 if (document) { |
| 125 DeviceMotionController::from(*document); | 126 DeviceMotionController::from(*document); |
| 126 DeviceOrientationController::from(*document); | 127 DeviceOrientationController::from(*document); |
| 127 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 128 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 128 DeviceLightController::from(*document); | 129 DeviceLightController::from(*document); |
| 129 NavigatorGamepad::from(*document); | 130 NavigatorGamepad::from(*document); |
| 131 NavigatorVRDevice::from(*document); |
| 130 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 132 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
| 131 NavigatorServiceWorker::from(*document); | 133 NavigatorServiceWorker::from(*document); |
| 132 DOMWindowStorageController::from(*document); | 134 DOMWindowStorageController::from(*document); |
| 133 } | 135 } |
| 134 } | 136 } |
| 135 } | 137 } |
| 136 | 138 |
| 137 void FrameLoaderClientImpl::documentElementAvailable() | 139 void FrameLoaderClientImpl::documentElementAvailable() |
| 138 { | 140 { |
| 139 if (m_webFrame->client()) | 141 if (m_webFrame->client()) |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 | 938 |
| 937 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 939 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 938 { | 940 { |
| 939 if (m_webFrame->client()) { | 941 if (m_webFrame->client()) { |
| 940 m_webFrame->client()->suddenTerminationDisablerChanged( | 942 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 941 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 943 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 942 } | 944 } |
| 943 } | 945 } |
| 944 | 946 |
| 945 } // namespace blink | 947 } // namespace blink |
| OLD | NEW |