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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 if (RuntimeEnabledFeatures::deviceLightEnabled()) | 119 if (RuntimeEnabledFeatures::deviceLightEnabled()) |
120 DeviceLightController::from(*document); | 120 DeviceLightController::from(*document); |
rwlbuis
2014/09/09 23:50:18
NavigatorGamepad::from(*document) call should be k
zhaoze.zhou
2014/09/10 12:54:30
Done.
| |
121 if (RuntimeEnabledFeatures::gamepadEnabled()) | |
122 NavigatorGamepad::from(*document); | |
rwlbuis
2014/09/09 23:50:18
NavigatorGamepad::from(*document); should be kept,
| |
123 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) | 121 if (RuntimeEnabledFeatures::serviceWorkerEnabled()) |
124 NavigatorServiceWorker::from(*document); | 122 NavigatorServiceWorker::from(*document); |
125 } | 123 } |
126 } | 124 } |
127 } | 125 } |
128 | 126 |
129 void FrameLoaderClientImpl::documentElementAvailable() | 127 void FrameLoaderClientImpl::documentElementAvailable() |
130 { | 128 { |
131 if (m_webFrame->client()) | 129 if (m_webFrame->client()) |
132 m_webFrame->client()->didCreateDocumentElement(m_webFrame); | 130 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); | 830 m_webFrame->client()->didAbortLoading(m_webFrame); |
833 } | 831 } |
834 | 832 |
835 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 833 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
836 { | 834 { |
837 if (m_webFrame->client()) | 835 if (m_webFrame->client()) |
838 m_webFrame->client()->didChangeManifest(m_webFrame); | 836 m_webFrame->client()->didChangeManifest(m_webFrame); |
839 } | 837 } |
840 | 838 |
841 } // namespace blink | 839 } // namespace blink |
OLD | NEW |