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

Unified Diff: Source/modules/webmidi/MIDIAccessorClient.h

Issue 962523005: Web MIDI: add open() and close() to MIDIPort (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review #14 Created 5 years, 10 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/MIDIAccessor.cpp ('k') | Source/modules/webmidi/MIDIInput.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccessorClient.h
diff --git a/Source/modules/webmidi/MIDIAccessorClient.h b/Source/modules/webmidi/MIDIAccessorClient.h
index 2f75573092bc89e37d0c4b7c952a6a9d0d8e81e7..960ca90e5ea8a6ca28156214e45531c8432657e2 100644
--- a/Source/modules/webmidi/MIDIAccessorClient.h
+++ b/Source/modules/webmidi/MIDIAccessorClient.h
@@ -31,16 +31,17 @@
#ifndef MIDIAccessorClient_h
#define MIDIAccessorClient_h
+#include "modules/webmidi/MIDIAccessor.h"
#include "wtf/Forward.h"
namespace blink {
class MIDIAccessorClient {
public:
- virtual void didAddInputPort(const String& id, const String& manufacturer, const String& name, const String& version, bool isActive) = 0;
- virtual void didAddOutputPort(const String& id, const String& manufacturer, const String& name, const String& version, bool isActive) = 0;
- virtual void didSetInputPortState(unsigned portIndex, bool isActive) = 0;
- virtual void didSetOutputPortState(unsigned portIndex, bool isActive) = 0;
+ virtual void didAddInputPort(const String& id, const String& manufacturer, const String& name, const String& version, MIDIAccessor::MIDIPortState) = 0;
+ virtual void didAddOutputPort(const String& id, const String& manufacturer, const String& name, const String& version, MIDIAccessor::MIDIPortState) = 0;
+ virtual void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) = 0;
+ virtual void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) = 0;
virtual void didStartSession(bool success, const String& error, const String& message) = 0;
virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) = 0;
« no previous file with comments | « Source/modules/webmidi/MIDIAccessor.cpp ('k') | Source/modules/webmidi/MIDIInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698