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

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: TODO: ActiveDOMObject 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
« 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 95ae2369eebf8495733e94211b9929944457f796..c374035f9603f53e1f14f4d8138817cef7e3924d 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 {
@@ -39,14 +44,17 @@ enum MIDIPortType {
"output"
};
+// TODO(toyoshim): Inherit ActiveDOMObject to protect the wrapper for event
+// listeners.
[
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;
« 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