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

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
« no previous file with comments | « Source/bindings/v8/MIDIAccessResolver.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8Binding.h
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
index 3e1e3d556611ab4c9011aa7580e1e0cce070f057..dc33490b34162f59ab59ab5a369c535ac456235e 100644
--- a/Source/bindings/v8/V8Binding.h
+++ b/Source/bindings/v8/V8Binding.h
@@ -709,6 +709,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
« no previous file with comments | « Source/bindings/v8/MIDIAccessResolver.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698