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

Unified Diff: Source/modules/webmidi/MIDIPort.idl

Issue 942153004: Web MIDI: Add MIDIPortState state attribute to MIDIPort (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/MIDIPort.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIPort.idl
diff --git a/Source/modules/webmidi/MIDIPort.idl b/Source/modules/webmidi/MIDIPort.idl
index 902c825502541607f5a8e5079c002e7a344a142f..a316a86b26ea7add6c3e35f50fefae4396314131 100644
--- a/Source/modules/webmidi/MIDIPort.idl
+++ b/Source/modules/webmidi/MIDIPort.idl
@@ -28,6 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum MIDIPortState {
+ "disconnected",
+ "connected",
+ "opened"
+};
+
enum MIDIPortType {
"input",
"output"
@@ -40,6 +46,7 @@ enum MIDIPortType {
readonly attribute DOMString id;
readonly attribute DOMString manufacturer;
readonly attribute DOMString name;
+ readonly attribute MIDIPortState state;
readonly attribute MIDIPortType type;
readonly attribute DOMString version;
« no previous file with comments | « Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698