Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2437943002: Ship WebBluetooth out of origin trial (Closed)
Patch Set: address more comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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());
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 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); 1150 if (RuntimeEnabledFeatures::webBluetoothEnabled())
1151 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX)
1152 enableWebBluetooth = true;
1153 #endif
1154 if (enableWebBluetooth)
1155 BluetoothSupplement::provideTo(frame, client->bluetooth()); 1151 BluetoothSupplement::provideTo(frame, client->bluetooth());
1156 1152
1157 ScreenOrientationController::provideTo(frame, 1153 ScreenOrientationController::provideTo(frame,
1158 client->webScreenOrientationClient()); 1154 client->webScreenOrientationClient());
1159 if (RuntimeEnabledFeatures::presentationEnabled()) 1155 if (RuntimeEnabledFeatures::presentationEnabled())
1160 PresentationController::provideTo(frame, client->presentationClient()); 1156 PresentationController::provideTo(frame, client->presentationClient());
1161 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) 1157 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled())
1162 provideAudioOutputDeviceClientTo(frame, 1158 provideAudioOutputDeviceClientTo(frame,
1163 AudioOutputDeviceClientImpl::create()); 1159 AudioOutputDeviceClientImpl::create());
1164 if (RuntimeEnabledFeatures::installedAppEnabled()) 1160 if (RuntimeEnabledFeatures::installedAppEnabled())
1165 InstalledAppController::provideTo(frame, client->installedAppClient()); 1161 InstalledAppController::provideTo(frame, client->installedAppClient());
1166 } 1162 }
1167 1163
1168 } // namespace blink 1164 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698