| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 | 1150 |
| 1151 void ChromeClientImpl::registerViewportLayers() const { | 1151 void ChromeClientImpl::registerViewportLayers() const { |
| 1152 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 1152 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 1153 m_webView->registerViewportLayersWithCompositor(); | 1153 m_webView->registerViewportLayersWithCompositor(); |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 void ChromeClientImpl::didUpdateBrowserControls() const { | 1156 void ChromeClientImpl::didUpdateBrowserControls() const { |
| 1157 m_webView->didUpdateBrowserControls(); | 1157 m_webView->didUpdateBrowserControls(); |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient( | 1160 CompositorWorkerProxyClient* |
| 1161 LocalFrame* frame) { | 1161 ChromeClientImpl::createCompositorWorkerProxyClient(LocalFrame* frame) { |
| 1162 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 1162 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1163 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient(); | 1163 return webFrame->localRoot() |
| 1164 ->frameWidget() |
| 1165 ->createCompositorWorkerProxyClient(); |
| 1166 } |
| 1167 |
| 1168 AnimationWorkletProxyClient* |
| 1169 ChromeClientImpl::createAnimationWorkletProxyClient(LocalFrame* frame) { |
| 1170 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1171 return webFrame->localRoot() |
| 1172 ->frameWidget() |
| 1173 ->createAnimationWorkletProxyClient(); |
| 1164 } | 1174 } |
| 1165 | 1175 |
| 1166 void ChromeClientImpl::registerPopupOpeningObserver( | 1176 void ChromeClientImpl::registerPopupOpeningObserver( |
| 1167 PopupOpeningObserver* observer) { | 1177 PopupOpeningObserver* observer) { |
| 1168 DCHECK(observer); | 1178 DCHECK(observer); |
| 1169 m_popupOpeningObservers.push_back(observer); | 1179 m_popupOpeningObservers.push_back(observer); |
| 1170 } | 1180 } |
| 1171 | 1181 |
| 1172 void ChromeClientImpl::unregisterPopupOpeningObserver( | 1182 void ChromeClientImpl::unregisterPopupOpeningObserver( |
| 1173 PopupOpeningObserver* observer) { | 1183 PopupOpeningObserver* observer) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 PresentationController::provideTo(frame, client->presentationClient()); | 1229 PresentationController::provideTo(frame, client->presentationClient()); |
| 1220 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1230 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1221 provideAudioOutputDeviceClientTo(frame, | 1231 provideAudioOutputDeviceClientTo(frame, |
| 1222 new AudioOutputDeviceClientImpl(frame)); | 1232 new AudioOutputDeviceClientImpl(frame)); |
| 1223 } | 1233 } |
| 1224 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1234 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1225 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1235 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1226 } | 1236 } |
| 1227 | 1237 |
| 1228 } // namespace blink | 1238 } // namespace blink |
| OLD | NEW |