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

Unified Diff: Source/bindings/v8/custom/V8PromiseCustom.h

Issue 23567043: Promise init callback takes resolve and reject functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
Index: Source/bindings/v8/custom/V8PromiseCustom.h
diff --git a/Source/bindings/v8/custom/V8PromiseCustom.h b/Source/bindings/v8/custom/V8PromiseCustom.h
index 8b0957cf2070d553ffa5f7a574e976813464cf43..214fc2a64c842bf49afdb9238d9a517d857cd8b2 100644
--- a/Source/bindings/v8/custom/V8PromiseCustom.h
+++ b/Source/bindings/v8/custom/V8PromiseCustom.h
@@ -25,6 +25,8 @@
#ifndef V8PromiseCustom_h
#define V8PromiseCustom_h
+#include "bindings/v8/WrapperTypeInfo.h"
+
#include <v8.h>
namespace WebCore {
@@ -59,6 +61,11 @@ public:
PrimitiveWrapperFieldCount, // This entry must always be at the bottom.
};
+ enum ResolverFieldIndex {
+ ResolverInternalIndex = v8DOMWrapperObjectIndex,
+ ResolverFieldCount, // This entry must always be at the bottom.
+ };
+
enum PromiseState {
Pending,
Fulfilled,

Powered by Google App Engine
This is Rietveld 408576698