Chromium Code Reviews| Index: Source/core/dom/Promise.idl |
| diff --git a/Source/modules/webmidi/MIDIConnectionEvent.idl b/Source/core/dom/Promise.idl |
| similarity index 89% |
| copy from Source/modules/webmidi/MIDIConnectionEvent.idl |
| copy to Source/core/dom/Promise.idl |
| index a9c745a2772afb04c1fb2083854cea7eac9dc082..7523e0e88a2e040e1d491ccdc7a8749e1ea15057 100644 |
| --- a/Source/modules/webmidi/MIDIConnectionEvent.idl |
| +++ b/Source/core/dom/Promise.idl |
| @@ -29,8 +29,10 @@ |
| */ |
| [ |
| - EnabledAtRuntime=webMIDI, |
| - ConstructorTemplate=Event |
| -] interface MIDIConnectionEvent : Event { |
| - [InitializedByEventConstructor] readonly attribute MIDIPort port; |
| + CustomConstructor(any init), |
| + EnabledAtRuntime=promise |
| +] interface Promise { |
| + // Example methods |
| + [Custom] any get(any value); |
| + [Custom] static any getStatic(any value); |
|
abarth-chromium
2013/06/17 18:05:06
These shouldn't need to be custom. We should teac
yhirano
2013/06/18 08:56:15
Will do in another CL.
|
| }; |