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

Unified Diff: extensions/renderer/api_binding_hooks_test_delegate.cc

Issue 2853023002: [Extensions Bindings] Add native declarativeContent verification (Closed)
Patch Set: lazyboy's Created 3 years, 8 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 | « extensions/renderer/api_binding_hooks_test_delegate.h ('k') | extensions/renderer/api_binding_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding_hooks_test_delegate.cc
diff --git a/extensions/renderer/api_binding_hooks_test_delegate.cc b/extensions/renderer/api_binding_hooks_test_delegate.cc
index 42cd3e76c496af4aed827189d6594bd8c2b32ece..85d3ccaab7b9be2b515ddb423057019bbdbee527 100644
--- a/extensions/renderer/api_binding_hooks_test_delegate.cc
+++ b/extensions/renderer/api_binding_hooks_test_delegate.cc
@@ -31,6 +31,11 @@ void APIBindingHooksTestDelegate::SetCustomEvent(
custom_event_ = custom_event;
}
+void APIBindingHooksTestDelegate::SetTemplateInitializer(
+ const TemplateInitializer& initializer) {
+ template_initializer_ = initializer;
+}
+
APIBindingHooks::RequestResult APIBindingHooksTestDelegate::HandleRequest(
const std::string& method_name,
const APISignature* signature,
@@ -45,4 +50,12 @@ APIBindingHooks::RequestResult APIBindingHooksTestDelegate::HandleRequest(
return iter->second.Run(signature, context, arguments, refs);
}
+void APIBindingHooksTestDelegate::InitializeTemplate(
+ v8::Isolate* isolate,
+ v8::Local<v8::ObjectTemplate> object_template,
+ const APITypeReferenceMap& type_refs) {
+ if (template_initializer_)
+ template_initializer_.Run(isolate, object_template, type_refs);
+}
+
} // namespace extensions
« no previous file with comments | « extensions/renderer/api_binding_hooks_test_delegate.h ('k') | extensions/renderer/api_binding_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698