| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() | 111 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() |
| 112 { | 112 { |
| 113 if (m_webFrame->client()) { | 113 if (m_webFrame->client()) { |
| 114 m_webFrame->client()->didClearWindowObject(m_webFrame); | 114 m_webFrame->client()->didClearWindowObject(m_webFrame); |
| 115 Document* document = m_webFrame->frame()->document(); | 115 Document* document = m_webFrame->frame()->document(); |
| 116 if (document) { | 116 if (document) { |
| 117 DeviceMotionController::from(*document); | 117 DeviceMotionController::from(*document); |
| 118 DeviceOrientationController::from(*document); | 118 DeviceOrientationController::from(*document); |
| 119 NavigatorGamepad::from(*document); |
| 119 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 120 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 120 DeviceLightController::from(*document); | 121 DeviceLightController::from(*document); |
| 121 if (RuntimeEnabledFeatures::gamepadEnabled()) | |
| 122 NavigatorGamepad::from(*document); | |
| 123 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 122 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
| 124 NavigatorServiceWorker::from(*document); | 123 NavigatorServiceWorker::from(*document); |
| 125 } | 124 } |
| 126 } | 125 } |
| 127 } | 126 } |
| 128 | 127 |
| 129 void FrameLoaderClientImpl::documentElementAvailable() | 128 void FrameLoaderClientImpl::documentElementAvailable() |
| 130 { | 129 { |
| 131 if (m_webFrame->client()) | 130 if (m_webFrame->client()) |
| 132 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 131 m_webFrame->client()->didCreateDocumentElement(m_webFrame); |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 m_webFrame->client()->didAbortLoading(m_webFrame); | 831 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 833 } | 832 } |
| 834 | 833 |
| 835 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 834 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 836 { | 835 { |
| 837 if (m_webFrame->client()) | 836 if (m_webFrame->client()) |
| 838 m_webFrame->client()->didChangeManifest(m_webFrame); | 837 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 839 } | 838 } |
| 840 | 839 |
| 841 } // namespace blink | 840 } // namespace blink |
| OLD | NEW |