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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "core/loader/FrameLoadRequest.h" | 64 #include "core/loader/FrameLoadRequest.h" |
65 #include "core/loader/FrameLoader.h" | 65 #include "core/loader/FrameLoader.h" |
66 #include "core/loader/HistoryItem.h" | 66 #include "core/loader/HistoryItem.h" |
67 #include "core/page/Chrome.h" | 67 #include "core/page/Chrome.h" |
68 #include "core/page/EventHandler.h" | 68 #include "core/page/EventHandler.h" |
69 #include "core/frame/FrameView.h" | 69 #include "core/frame/FrameView.h" |
70 #include "core/page/Page.h" | 70 #include "core/page/Page.h" |
71 #include "core/frame/Settings.h" | 71 #include "core/frame/Settings.h" |
72 #include "core/page/WindowFeatures.h" | 72 #include "core/page/WindowFeatures.h" |
73 #include "core/rendering/HitTestResult.h" | 73 #include "core/rendering/HitTestResult.h" |
| 74 #include "modules/device_light/DeviceLightController.h" |
74 #include "modules/device_orientation/DeviceMotionController.h" | 75 #include "modules/device_orientation/DeviceMotionController.h" |
75 #include "modules/device_orientation/DeviceOrientationController.h" | 76 #include "modules/device_orientation/DeviceOrientationController.h" |
76 #include "modules/gamepad/NavigatorGamepad.h" | 77 #include "modules/gamepad/NavigatorGamepad.h" |
77 #include "modules/screen_orientation/ScreenOrientationController.h" | 78 #include "modules/screen_orientation/ScreenOrientationController.h" |
78 #include "platform/MIMETypeRegistry.h" | 79 #include "platform/MIMETypeRegistry.h" |
79 #include "platform/UserGestureIndicator.h" | 80 #include "platform/UserGestureIndicator.h" |
80 #include "platform/exported/WrappedResourceRequest.h" | 81 #include "platform/exported/WrappedResourceRequest.h" |
81 #include "platform/exported/WrappedResourceResponse.h" | 82 #include "platform/exported/WrappedResourceResponse.h" |
82 #include "platform/network/HTTPParsers.h" | 83 #include "platform/network/HTTPParsers.h" |
83 #include "platform/network/SocketStreamHandleInternal.h" | 84 #include "platform/network/SocketStreamHandleInternal.h" |
(...skipping 26 matching lines...) Expand all Loading... |
110 { | 111 { |
111 } | 112 } |
112 | 113 |
113 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld&
world) | 114 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld&
world) |
114 { | 115 { |
115 if (m_webFrame->client()) { | 116 if (m_webFrame->client()) { |
116 m_webFrame->client()->didClearWindowObject(m_webFrame, world.worldId()); | 117 m_webFrame->client()->didClearWindowObject(m_webFrame, world.worldId()); |
117 Document* document = m_webFrame->frame()->document(); | 118 Document* document = m_webFrame->frame()->document(); |
118 if (document) { | 119 if (document) { |
119 WheelController::from(*document); | 120 WheelController::from(*document); |
| 121 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 122 DeviceLightController::from(*document); |
120 if (RuntimeEnabledFeatures::deviceMotionEnabled()) | 123 if (RuntimeEnabledFeatures::deviceMotionEnabled()) |
121 DeviceMotionController::from(*document); | 124 DeviceMotionController::from(*document); |
122 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) | 125 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |
123 DeviceOrientationController::from(*document); | 126 DeviceOrientationController::from(*document); |
124 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 127 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
125 ScreenOrientationController::from(*document); | 128 ScreenOrientationController::from(*document); |
126 if (RuntimeEnabledFeatures::gamepadEnabled()) | 129 if (RuntimeEnabledFeatures::gamepadEnabled()) |
127 NavigatorGamepad::from(*document); | 130 NavigatorGamepad::from(*document); |
128 } | 131 } |
129 } | 132 } |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 805 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
803 } | 806 } |
804 | 807 |
805 void FrameLoaderClientImpl::didStopAllLoaders() | 808 void FrameLoaderClientImpl::didStopAllLoaders() |
806 { | 809 { |
807 if (m_webFrame->client()) | 810 if (m_webFrame->client()) |
808 m_webFrame->client()->didAbortLoading(m_webFrame); | 811 m_webFrame->client()->didAbortLoading(m_webFrame); |
809 } | 812 } |
810 | 813 |
811 } // namespace blink | 814 } // namespace blink |
OLD | NEW |