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/Chrome.h" | 49 #include "core/page/Chrome.h" |
50 #include "core/page/EventHandler.h" | 50 #include "core/page/EventHandler.h" |
51 #include "core/page/Page.h" | 51 #include "core/page/Page.h" |
52 #include "core/page/WindowFeatures.h" | 52 #include "core/page/WindowFeatures.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); |
130 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 131 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
131 NavigatorServiceWorker::from(*document); | 132 NavigatorServiceWorker::from(*document); |
132 DOMWindowStorageController::from(*document); | 133 DOMWindowStorageController::from(*document); |
| 134 if (RuntimeEnabledFeatures::vRDeviceEnabled()) |
| 135 NavigatorVRDevice::from(*document); |
133 } | 136 } |
134 } | 137 } |
135 // FIXME: when extensions go out of process, this whole concept stops workin
g. | 138 // FIXME: when extensions go out of process, this whole concept stops workin
g. |
136 WebDevToolsFrontendImpl* devToolsFrontend = m_webFrame->top()->isWebLocalFra
me() ? toWebLocalFrameImpl(m_webFrame->top())->devToolsFrontend() : nullptr; | 139 WebDevToolsFrontendImpl* devToolsFrontend = m_webFrame->top()->isWebLocalFra
me() ? toWebLocalFrameImpl(m_webFrame->top())->devToolsFrontend() : nullptr; |
137 if (devToolsFrontend) | 140 if (devToolsFrontend) |
138 devToolsFrontend->didClearWindowObject(m_webFrame); | 141 devToolsFrontend->didClearWindowObject(m_webFrame); |
139 } | 142 } |
140 | 143 |
141 void FrameLoaderClientImpl::documentElementAvailable() | 144 void FrameLoaderClientImpl::documentElementAvailable() |
142 { | 145 { |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 940 |
938 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 941 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
939 { | 942 { |
940 if (m_webFrame->client()) { | 943 if (m_webFrame->client()) { |
941 m_webFrame->client()->suddenTerminationDisablerChanged( | 944 m_webFrame->client()->suddenTerminationDisablerChanged( |
942 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 945 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
943 } | 946 } |
944 } | 947 } |
945 | 948 |
946 } // namespace blink | 949 } // namespace blink |
OLD | NEW |