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

Unified Diff: Source/core/dom/FutureResolver.idl

Issue 15786003: WIP don't review: Implement Future (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/core/dom/Future.h ('K') | « Source/core/dom/FutureResolver.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/FutureResolver.idl
diff --git a/Source/modules/webmidi/MIDIErrorCallback.idl b/Source/core/dom/FutureResolver.idl
similarity index 91%
copy from Source/modules/webmidi/MIDIErrorCallback.idl
copy to Source/core/dom/FutureResolver.idl
index 0591bf6715e14bf85426c3cfb82fc2aedf25918d..913c4196ba1a2671ff7384f682a09ee823925e82 100644
--- a/Source/modules/webmidi/MIDIErrorCallback.idl
+++ b/Source/core/dom/FutureResolver.idl
@@ -28,6 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-callback interface MIDIErrorCallback {
- boolean handleEvent(DOMError error);
+interface FutureResolver {
+ void accept(optional any value);
+ [Custom] void resolve(optional any value);
+ void reject(optional any value);
};
« Source/core/dom/Future.h ('K') | « Source/core/dom/FutureResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698