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

Unified Diff: extensions/renderer/api_binding.cc

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: . Created 4 years 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: extensions/renderer/api_binding.cc
diff --git a/extensions/renderer/api_binding.cc b/extensions/renderer/api_binding.cc
index 9b6b6091a35221300514713e9bad47a69d22f43d..b3e56ce53e1ce64886097bc5d640369d4e678715 100644
--- a/extensions/renderer/api_binding.cc
+++ b/extensions/renderer/api_binding.cc
@@ -296,6 +296,11 @@ v8::Local<v8::Object> APIBinding::CreateInstance(
return object;
}
+v8::Local<v8::Object> APIBinding::GetJSHooksInterface(
jbroman 2016/12/16 19:00:49 nit: spelling changes from "Hook" to "Hooks"; why?
Devlin 2016/12/16 20:31:17 Accident; synchronized.
+ v8::Local<v8::Context> context) {
+ return binding_hooks_->GetJSHookInterface(api_name_, context);
+}
+
void APIBinding::HandleCall(const std::string& name,
const binding::APISignature* signature,
gin::Arguments* arguments) {

Powered by Google App Engine
This is Rietveld 408576698