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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 return m_webView->lastFrameTimeMonotonic(); | 1135 return m_webView->lastFrameTimeMonotonic(); |
1136 } | 1136 } |
1137 | 1137 |
1138 void ChromeClientImpl::installSupplements(LocalFrame& frame) { | 1138 void ChromeClientImpl::installSupplements(LocalFrame& frame) { |
1139 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(&frame); | 1139 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(&frame); |
1140 WebFrameClient* client = webFrame->client(); | 1140 WebFrameClient* client = webFrame->client(); |
1141 DCHECK(client); | 1141 DCHECK(client); |
1142 providePushControllerTo(frame, client->pushClient()); | 1142 providePushControllerTo(frame, client->pushClient()); |
1143 provideUserMediaTo(frame, | 1143 provideUserMediaTo(frame, |
1144 UserMediaClientImpl::create(client->userMediaClient())); | 1144 UserMediaClientImpl::create(client->userMediaClient())); |
1145 provideIndexedDBClientTo(frame, IndexedDBClientImpl::create()); | 1145 provideIndexedDBClientTo(frame, IndexedDBClientImpl::create(frame)); |
1146 provideLocalFileSystemTo(frame, LocalFileSystemClient::create()); | 1146 provideLocalFileSystemTo(frame, LocalFileSystemClient::create()); |
1147 provideNavigatorContentUtilsTo( | 1147 provideNavigatorContentUtilsTo( |
1148 frame, NavigatorContentUtilsClientImpl::create(webFrame)); | 1148 frame, NavigatorContentUtilsClientImpl::create(webFrame)); |
1149 | 1149 |
1150 ScreenOrientationControllerImpl::provideTo( | 1150 ScreenOrientationControllerImpl::provideTo( |
1151 frame, client->webScreenOrientationClient()); | 1151 frame, client->webScreenOrientationClient()); |
1152 if (RuntimeEnabledFeatures::presentationEnabled()) | 1152 if (RuntimeEnabledFeatures::presentationEnabled()) |
1153 PresentationController::provideTo(frame, client->presentationClient()); | 1153 PresentationController::provideTo(frame, client->presentationClient()); |
1154 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1154 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { |
1155 provideAudioOutputDeviceClientTo(frame, | 1155 provideAudioOutputDeviceClientTo(frame, |
1156 AudioOutputDeviceClientImpl::create()); | 1156 new AudioOutputDeviceClientImpl(frame)); |
| 1157 } |
1157 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1158 if (RuntimeEnabledFeatures::installedAppEnabled()) |
1158 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1159 InstalledAppController::provideTo(frame, client->installedAppClient()); |
1159 } | 1160 } |
1160 | 1161 |
1161 } // namespace blink | 1162 } // namespace blink |
OLD | NEW |