| 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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 void ChromeClientImpl::registerViewportLayers() const { | 1097 void ChromeClientImpl::registerViewportLayers() const { |
| 1098 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 1098 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 1099 m_webView->registerViewportLayersWithCompositor(); | 1099 m_webView->registerViewportLayersWithCompositor(); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 void ChromeClientImpl::didUpdateBrowserControls() const { | 1102 void ChromeClientImpl::didUpdateBrowserControls() const { |
| 1103 m_webView->didUpdateBrowserControls(); | 1103 m_webView->didUpdateBrowserControls(); |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient( | 1106 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient( |
| 1107 CompositorProxyClient::Type type, |
| 1107 LocalFrame* frame) { | 1108 LocalFrame* frame) { |
| 1108 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 1109 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1109 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient(); | 1110 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient( |
| 1111 type); |
| 1110 } | 1112 } |
| 1111 | 1113 |
| 1112 void ChromeClientImpl::registerPopupOpeningObserver( | 1114 void ChromeClientImpl::registerPopupOpeningObserver( |
| 1113 PopupOpeningObserver* observer) { | 1115 PopupOpeningObserver* observer) { |
| 1114 DCHECK(observer); | 1116 DCHECK(observer); |
| 1115 m_popupOpeningObservers.push_back(observer); | 1117 m_popupOpeningObservers.push_back(observer); |
| 1116 } | 1118 } |
| 1117 | 1119 |
| 1118 void ChromeClientImpl::unregisterPopupOpeningObserver( | 1120 void ChromeClientImpl::unregisterPopupOpeningObserver( |
| 1119 PopupOpeningObserver* observer) { | 1121 PopupOpeningObserver* observer) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 PresentationController::provideTo(frame, client->presentationClient()); | 1168 PresentationController::provideTo(frame, client->presentationClient()); |
| 1167 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { | 1169 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
| 1168 provideAudioOutputDeviceClientTo(frame, | 1170 provideAudioOutputDeviceClientTo(frame, |
| 1169 new AudioOutputDeviceClientImpl(frame)); | 1171 new AudioOutputDeviceClientImpl(frame)); |
| 1170 } | 1172 } |
| 1171 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1173 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1172 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1174 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1173 } | 1175 } |
| 1174 | 1176 |
| 1175 } // namespace blink | 1177 } // namespace blink |
| OLD | NEW |