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

Unified Diff: modules/webmidi/MIDIPort.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « modules/webmidi/MIDIOutputMap.idl ('k') | modules/webmidi/MIDISuccessCallback.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/webmidi/MIDIPort.idl
diff --git a/modules/webmidi/MIDIPort.idl b/modules/webmidi/MIDIPort.idl
index 902c825502541607f5a8e5079c002e7a344a142f..726fd01a31fd46021ee261f946aff5eb3f706d0e 100644
--- a/modules/webmidi/MIDIPort.idl
+++ b/modules/webmidi/MIDIPort.idl
@@ -28,20 +28,36 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum MIDIPortConnectionState {
+ "open",
+ "closed",
+ "pending"
+};
+
+enum MIDIPortDeviceState {
+ "disconnected",
+ "connected"
+};
+
enum MIDIPortType {
"input",
"output"
};
[
- NoInterfaceObject,
- GarbageCollected
+ ActiveDOMObject,
+ GarbageCollected,
] interface MIDIPort : EventTarget {
+ readonly attribute MIDIPortConnectionState connection;
readonly attribute DOMString id;
readonly attribute DOMString manufacturer;
readonly attribute DOMString name;
+ readonly attribute MIDIPortDeviceState state;
readonly attribute MIDIPortType type;
readonly attribute DOMString version;
- attribute EventHandler ondisconnect;
+ attribute EventHandler onstatechange;
+
+ [CallWith=ScriptState] Promise open();
+ [CallWith=ScriptState] Promise close();
};
« no previous file with comments | « modules/webmidi/MIDIOutputMap.idl ('k') | modules/webmidi/MIDISuccessCallback.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698