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

Unified Diff: Source/modules/webmidi/MIDIClientMock.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/modules/webmidi/MIDIClientMock.h ('k') | Source/modules/webmidi/MIDIController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIClientMock.cpp
diff --git a/Source/modules/webmidi/MIDIClientMock.cpp b/Source/modules/webmidi/MIDIClientMock.cpp
index 3c07409bbb3e69a0345a346cb5e37512cd5ba38c..5b9f39768569a2ee4b2dea80a8aeeca50b11126c 100644
--- a/Source/modules/webmidi/MIDIClientMock.cpp
+++ b/Source/modules/webmidi/MIDIClientMock.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "modules/webmidi/MIDIClientMock.h"
-#include "modules/webmidi/MIDIAccess.h"
+#include "modules/webmidi/MIDIAccessInitializer.h"
namespace WebCore {
@@ -54,12 +54,12 @@ void MIDIClientMock::resetMock()
m_allowed = false;
}
-void MIDIClientMock::requestSysexPermission(PassRefPtrWillBeRawPtr<MIDIAccess> access)
+void MIDIClientMock::requestSysexPermission(MIDIAccessInitializer* initializer)
{
- access->setSysexEnabled(m_allowed);
+ initializer->setSysexEnabled(m_allowed);
}
-void MIDIClientMock::cancelSysexPermissionRequest(MIDIAccess*)
+void MIDIClientMock::cancelSysexPermissionRequest(MIDIAccessInitializer*)
{
}
« no previous file with comments | « Source/modules/webmidi/MIDIClientMock.h ('k') | Source/modules/webmidi/MIDIController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698