| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 #include "config.h" | 32 #include "config.h" |
| 33 #include "web/FrameLoaderClientImpl.h" | 33 #include "web/FrameLoaderClientImpl.h" |
| 34 | 34 |
| 35 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
| 36 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
| 37 #include "bindings/v8/Dictionary.h" | 37 #include "bindings/v8/Dictionary.h" |
| 38 #include "bindings/v8/ScriptController.h" | 38 #include "bindings/v8/ScriptController.h" |
| 39 #include "core/dom/Document.h" | 39 #include "core/dom/Document.h" |
| 40 #include "core/dom/DocumentFullscreen.h" | 40 #include "core/dom/DocumentFullscreen.h" |
| 41 #include "core/dom/WheelController.h" | |
| 42 #include "core/events/MessageEvent.h" | 41 #include "core/events/MessageEvent.h" |
| 43 #include "core/events/MouseEvent.h" | 42 #include "core/events/MouseEvent.h" |
| 44 #include "core/frame/FrameView.h" | 43 #include "core/frame/FrameView.h" |
| 45 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
| 46 #include "core/html/HTMLAppletElement.h" | 45 #include "core/html/HTMLAppletElement.h" |
| 47 #include "core/loader/DocumentLoader.h" | 46 #include "core/loader/DocumentLoader.h" |
| 48 #include "core/loader/FrameLoadRequest.h" | 47 #include "core/loader/FrameLoadRequest.h" |
| 49 #include "core/loader/FrameLoader.h" | 48 #include "core/loader/FrameLoader.h" |
| 50 #include "core/loader/HistoryItem.h" | 49 #include "core/loader/HistoryItem.h" |
| 51 #include "core/page/Chrome.h" | 50 #include "core/page/Chrome.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 FrameLoaderClientImpl::~FrameLoaderClientImpl() | 112 FrameLoaderClientImpl::~FrameLoaderClientImpl() |
| 114 { | 113 { |
| 115 } | 114 } |
| 116 | 115 |
| 117 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() | 116 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
| 118 { | 117 { |
| 119 if (m_webFrame->client()) { | 118 if (m_webFrame->client()) { |
| 120 m_webFrame->client()->didClearWindowObject(m_webFrame); | 119 m_webFrame->client()->didClearWindowObject(m_webFrame); |
| 121 Document* document = m_webFrame->frame()->document(); | 120 Document* document = m_webFrame->frame()->document(); |
| 122 if (document) { | 121 if (document) { |
| 123 WheelController::from(*document); | |
| 124 DeviceMotionController::from(*document); | 122 DeviceMotionController::from(*document); |
| 125 DeviceOrientationController::from(*document); | 123 DeviceOrientationController::from(*document); |
| 126 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 124 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 127 DeviceLightController::from(*document); | 125 DeviceLightController::from(*document); |
| 128 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 126 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 129 ScreenOrientationController::from(*document); | 127 ScreenOrientationController::from(*document); |
| 130 if (RuntimeEnabledFeatures::gamepadEnabled()) | 128 if (RuntimeEnabledFeatures::gamepadEnabled()) |
| 131 NavigatorGamepad::from(*document); | 129 NavigatorGamepad::from(*document); |
| 132 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 130 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
| 133 NavigatorServiceWorker::from(*document); | 131 NavigatorServiceWorker::from(*document); |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 m_webFrame->client()->didAbortLoading(m_webFrame); | 806 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 809 } | 807 } |
| 810 | 808 |
| 811 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 809 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 812 { | 810 { |
| 813 if (m_webFrame->client()) | 811 if (m_webFrame->client()) |
| 814 m_webFrame->client()->didChangeManifest(m_webFrame); | 812 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 815 } | 813 } |
| 816 | 814 |
| 817 } // namespace blink | 815 } // namespace blink |
| OLD | NEW |