Chromium Code Reviews| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 119 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
| 120 DeviceLightController::from(*document); | 120 DeviceLightController::from(*document); |
| 121 if (RuntimeEnabledFeatures::gamepadEnabled()) | 121 NavigatorGamepad::from(*document); |
|
eseidel
2014/10/07 16:06:57
I'm not sure why we're instantiating a NavigatorGa
| |
| 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 m_webFrame->client()->didAbortLoading(m_webFrame); | 827 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 829 } | 828 } |
| 830 | 829 |
| 831 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 830 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 832 { | 831 { |
| 833 if (m_webFrame->client()) | 832 if (m_webFrame->client()) |
| 834 m_webFrame->client()->didChangeManifest(m_webFrame); | 833 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 835 } | 834 } |
| 836 | 835 |
| 837 } // namespace blink | 836 } // namespace blink |
| OLD | NEW |