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

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

Issue 1043863002: Web MIDI: final IDL updates to conform the latest WD for shipping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: drop clear() for now, and add missing update on open_close test Created 5 years, 9 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
« Source/modules/webmidi/MIDIPort.cpp ('K') | « 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 95ae2369eebf8495733e94211b9929944457f796..d9b8a8ba8b5a9bebb789102de7d5ad44431eca2c 100644
--- a/Source/modules/webmidi/MIDIPort.idl
+++ b/Source/modules/webmidi/MIDIPort.idl
@@ -28,10 +28,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-enum MIDIPortState {
+enum MIDIPortConnectionState {
+ "open",
+ "closed",
+ "pending"
+};
+
+enum MIDIPortDeviceState {
"disconnected",
- "connected",
- "opened"
+ "connected"
};
enum MIDIPortType {
@@ -43,10 +48,11 @@ enum MIDIPortType {
GarbageCollected,
RuntimeEnabled=WebMIDI,
] interface MIDIPort : EventTarget {
+ readonly attribute MIDIPortConnectionState connection;
readonly attribute DOMString id;
readonly attribute DOMString manufacturer;
readonly attribute DOMString name;
- readonly attribute MIDIPortState state;
+ readonly attribute MIDIPortDeviceState state;
readonly attribute MIDIPortType type;
readonly attribute DOMString version;
« Source/modules/webmidi/MIDIPort.cpp ('K') | « Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698