| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "core/html/HTMLAppletElement.h" | 46 #include "core/html/HTMLAppletElement.h" |
| 47 #include "core/loader/DocumentLoader.h" | 47 #include "core/loader/DocumentLoader.h" |
| 48 #include "core/loader/FrameLoadRequest.h" | 48 #include "core/loader/FrameLoadRequest.h" |
| 49 #include "core/loader/FrameLoader.h" | 49 #include "core/loader/FrameLoader.h" |
| 50 #include "core/loader/HistoryItem.h" | 50 #include "core/loader/HistoryItem.h" |
| 51 #include "core/page/Chrome.h" | 51 #include "core/page/Chrome.h" |
| 52 #include "core/page/EventHandler.h" | 52 #include "core/page/EventHandler.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 "core/rendering/HitTestResult.h" | 55 #include "core/rendering/HitTestResult.h" |
| 56 #include "modules/device_light/DeviceLightController.h" |
| 56 #include "modules/device_orientation/DeviceMotionController.h" | 57 #include "modules/device_orientation/DeviceMotionController.h" |
| 57 #include "modules/device_orientation/DeviceOrientationController.h" | 58 #include "modules/device_orientation/DeviceOrientationController.h" |
| 58 #include "modules/gamepad/NavigatorGamepad.h" | 59 #include "modules/gamepad/NavigatorGamepad.h" |
| 59 #include "modules/screen_orientation/ScreenOrientationController.h" | 60 #include "modules/screen_orientation/ScreenOrientationController.h" |
| 60 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 61 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
| 61 #include "platform/MIMETypeRegistry.h" | 62 #include "platform/MIMETypeRegistry.h" |
| 62 #include "platform/UserGestureIndicator.h" | 63 #include "platform/UserGestureIndicator.h" |
| 63 #include "platform/exported/WrappedResourceRequest.h" | 64 #include "platform/exported/WrappedResourceRequest.h" |
| 64 #include "platform/exported/WrappedResourceResponse.h" | 65 #include "platform/exported/WrappedResourceResponse.h" |
| 65 #include "platform/network/HTTPParsers.h" | 66 #include "platform/network/HTTPParsers.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 { | 114 { |
| 114 } | 115 } |
| 115 | 116 |
| 116 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() | 117 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
| 117 { | 118 { |
| 118 if (m_webFrame->client()) { | 119 if (m_webFrame->client()) { |
| 119 m_webFrame->client()->didClearWindowObject(m_webFrame); | 120 m_webFrame->client()->didClearWindowObject(m_webFrame); |
| 120 Document* document = m_webFrame->frame()->document(); | 121 Document* document = m_webFrame->frame()->document(); |
| 121 if (document) { | 122 if (document) { |
| 122 WheelController::from(*document); | 123 WheelController::from(*document); |
| 124 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 125 DeviceLightController::from(*document); |
| 123 if (RuntimeEnabledFeatures::deviceMotionEnabled()) | 126 if (RuntimeEnabledFeatures::deviceMotionEnabled()) |
| 124 DeviceMotionController::from(*document); | 127 DeviceMotionController::from(*document); |
| 125 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) | 128 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |
| 126 DeviceOrientationController::from(*document); | 129 DeviceOrientationController::from(*document); |
| 127 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 130 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 128 ScreenOrientationController::from(*document); | 131 ScreenOrientationController::from(*document); |
| 129 if (RuntimeEnabledFeatures::gamepadEnabled()) | 132 if (RuntimeEnabledFeatures::gamepadEnabled()) |
| 130 NavigatorGamepad::from(*document); | 133 NavigatorGamepad::from(*document); |
| 131 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 134 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
| 132 NavigatorServiceWorker::from(*document); | 135 NavigatorServiceWorker::from(*document); |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 m_webFrame->client()->didAbortLoading(m_webFrame); | 812 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 810 } | 813 } |
| 811 | 814 |
| 812 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 815 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 813 { | 816 { |
| 814 if (m_webFrame->client()) | 817 if (m_webFrame->client()) |
| 815 m_webFrame->client()->didChangeManifest(m_webFrame); | 818 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 816 } | 819 } |
| 817 | 820 |
| 818 } // namespace blink | 821 } // namespace blink |
| OLD | NEW |