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

Unified Diff: Source/bindings/v8/V8Binding.h

Issue 77773003: Make WebMIDI use blink Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/bindings/v8/V8Binding.h
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
index 86602d66f86fb6077ef4df698950292d8c716adc..51a69b2a3578165520730dea4deddf6715e7aed4 100644
--- a/Source/bindings/v8/V8Binding.h
+++ b/Source/bindings/v8/V8Binding.h
@@ -678,6 +678,13 @@ void moveEventListenerToNewWrapper(v8::Handle<v8::Object>, EventListener* oldVal
// Each specialized implementation will be generated.
template<typename T>
v8::Handle<v8::Value> toV8NoInline(T* impl, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+template<typename T>
+v8::Handle<v8::Value> toV8NoInline(T* impl, ExecutionContext* context)
+{
+ v8::Isolate* isolate = toIsolate(context);
+ v8::Handle<v8::Context> v8Context = toV8Context(context, DOMWrapperWorld::current(isolate));
+ return toV8NoInline(impl, v8Context->Global(), isolate);
+}
// Result values for platform object 'deleter' methods,
// http://www.w3.org/TR/WebIDL/#delete

Powered by Google App Engine
This is Rietveld 408576698