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

Unified Diff: Source/web/MIDIClientProxy.cpp

Issue 311773003: Decouple MIDIAccess initialization from MIDIAccess class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/MIDIClientProxy.h ('k') | Source/web/WebMIDIClientMock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/MIDIClientProxy.cpp
diff --git a/Source/web/MIDIClientProxy.cpp b/Source/web/MIDIClientProxy.cpp
index 2a0e270750c6d46f42b558d09404d08274454ca7..faa8306e824cbc10a45b0d50328f9ec870f9c3df 100644
--- a/Source/web/MIDIClientProxy.cpp
+++ b/Source/web/MIDIClientProxy.cpp
@@ -31,12 +31,10 @@
#include "config.h"
#include "web/MIDIClientProxy.h"
-#include "modules/webmidi/MIDIAccess.h"
+#include "modules/webmidi/MIDIAccessInitializer.h"
#include "public/web/WebMIDIClient.h"
#include "public/web/WebMIDIPermissionRequest.h"
-using WebCore::MIDIAccess;
-
namespace blink {
MIDIClientProxy::MIDIClientProxy(WebMIDIClient* client)
@@ -44,18 +42,18 @@ MIDIClientProxy::MIDIClientProxy(WebMIDIClient* client)
{
}
-void MIDIClientProxy::requestSysexPermission(PassRefPtrWillBeRawPtr<MIDIAccess> access)
+void MIDIClientProxy::requestSysexPermission(WebCore::MIDIAccessInitializer* initializer)
{
if (m_client)
- m_client->requestSysexPermission(WebMIDIPermissionRequest(access));
+ m_client->requestSysexPermission(WebMIDIPermissionRequest(initializer));
else
- access->setSysexEnabled(false);
+ initializer->setSysexEnabled(false);
}
-void MIDIClientProxy::cancelSysexPermissionRequest(MIDIAccess* access)
+void MIDIClientProxy::cancelSysexPermissionRequest(WebCore::MIDIAccessInitializer* initializer)
{
if (m_client)
- m_client->cancelSysexPermissionRequest(WebMIDIPermissionRequest(access));
+ m_client->cancelSysexPermissionRequest(WebMIDIPermissionRequest(initializer));
}
} // namespace blink
« no previous file with comments | « Source/web/MIDIClientProxy.h ('k') | Source/web/WebMIDIClientMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698