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

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

Issue 2116763002: Reland: Web MIDI: use mojom::blink::PermissionService directly to ask permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for second attempt Created 4 years, 4 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 #include "public/web/WebScriptSource.h" 212 #include "public/web/WebScriptSource.h"
213 #include "public/web/WebSerializedScriptValue.h" 213 #include "public/web/WebSerializedScriptValue.h"
214 #include "public/web/WebTreeScopeType.h" 214 #include "public/web/WebTreeScopeType.h"
215 #include "skia/ext/platform_canvas.h" 215 #include "skia/ext/platform_canvas.h"
216 #include "web/AssociatedURLLoader.h" 216 #include "web/AssociatedURLLoader.h"
217 #include "web/AudioOutputDeviceClientImpl.h" 217 #include "web/AudioOutputDeviceClientImpl.h"
218 #include "web/CompositionUnderlineVectorBuilder.h" 218 #include "web/CompositionUnderlineVectorBuilder.h"
219 #include "web/FindInPageCoordinates.h" 219 #include "web/FindInPageCoordinates.h"
220 #include "web/IndexedDBClientImpl.h" 220 #include "web/IndexedDBClientImpl.h"
221 #include "web/LocalFileSystemClient.h" 221 #include "web/LocalFileSystemClient.h"
222 #include "web/MIDIClientProxy.h"
223 #include "web/NavigatorContentUtilsClientImpl.h" 222 #include "web/NavigatorContentUtilsClientImpl.h"
224 #include "web/NotificationPermissionClientImpl.h" 223 #include "web/NotificationPermissionClientImpl.h"
225 #include "web/RemoteFrameOwner.h" 224 #include "web/RemoteFrameOwner.h"
226 #include "web/SharedWorkerRepositoryClientImpl.h" 225 #include "web/SharedWorkerRepositoryClientImpl.h"
227 #include "web/SuspendableScriptExecutor.h" 226 #include "web/SuspendableScriptExecutor.h"
228 #include "web/TextFinder.h" 227 #include "web/TextFinder.h"
229 #include "web/WebDataSourceImpl.h" 228 #include "web/WebDataSourceImpl.h"
230 #include "web/WebDevToolsAgentImpl.h" 229 #include "web/WebDevToolsAgentImpl.h"
231 #include "web/WebFrameWidgetImpl.h" 230 #include "web/WebFrameWidgetImpl.h"
232 #include "web/WebPluginContainerImpl.h" 231 #include "web/WebPluginContainerImpl.h"
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 1462
1464 // FIXME: we shouldn't add overhead to every frame by registering these obje cts when they're not used. 1463 // FIXME: we shouldn't add overhead to every frame by registering these obje cts when they're not used.
1465 if (!m_frame) 1464 if (!m_frame)
1466 return; 1465 return;
1467 1466
1468 if (m_client) 1467 if (m_client)
1469 providePushControllerTo(*m_frame, m_client->pushClient()); 1468 providePushControllerTo(*m_frame, m_client->pushClient());
1470 1469
1471 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient Impl::create()); 1470 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionClient Impl::create());
1472 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); 1471 provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
1473 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->webMIDI Client() : nullptr));
1474 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create()); 1472 provideIndexedDBClientTo(*m_frame, IndexedDBClientImpl::create());
1475 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); 1473 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
1476 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr eate(this)); 1474 provideNavigatorContentUtilsTo(*m_frame, NavigatorContentUtilsClientImpl::cr eate(this));
1477 1475
1478 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled(); 1476 bool enableWebBluetooth = RuntimeEnabledFeatures::webBluetoothEnabled();
1479 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX) 1477 #if OS(CHROMEOS) || OS(ANDROID) || OS(MACOSX)
1480 enableWebBluetooth = true; 1478 enableWebBluetooth = true;
1481 #endif 1479 #endif
1482 if (enableWebBluetooth) 1480 if (enableWebBluetooth)
1483 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr); 1481 BluetoothSupplement::provideTo(*m_frame, m_client ? m_client->bluetooth( ) : nullptr);
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2151 { 2149 {
2152 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2150 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2153 } 2151 }
2154 2152
2155 void WebLocalFrameImpl::clearActiveFindMatch() 2153 void WebLocalFrameImpl::clearActiveFindMatch()
2156 { 2154 {
2157 ensureTextFinder().clearActiveFindMatch(); 2155 ensureTextFinder().clearActiveFindMatch();
2158 } 2156 }
2159 2157
2160 } // namespace blink 2158 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/MIDIClientProxy.cpp ('k') | third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698