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

Unified Diff: third_party/WebKit/Source/bindings/templates/interface.h.tmpl

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Support runtime feature on templates Created 3 years, 6 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: third_party/WebKit/Source/bindings/templates/interface.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/interface.h.tmpl b/third_party/WebKit/Source/bindings/templates/interface.h.tmpl
index abcfeefa5af5f15fc527753e462f9ff4cdf35318..1f1680a6756d3ea2c24296f85639ab009df5d7f0 100644
--- a/third_party/WebKit/Source/bindings/templates/interface.h.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/interface.h.tmpl
@@ -131,7 +131,11 @@ class {{v8_class}} {
{% endif %}
{% if has_partial_interface %}
- {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, InstallRuntimeEnabledFunction, PreparePrototypeAndInterfaceObjectFunction);
+ {{exported}}static void updateWrapperTypeInfo(
+ InstallTemplateFunction,
+ InstallRuntimeEnabledFunction,
+ InstallRuntimeEnabledOnTemplateFunction,
+ PreparePrototypeAndInterfaceObjectFunction);
{{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
{% for method in methods if method.overloads and method.overloads.has_partial_overloads %}
{{exported}}static void register{{method.name | blink_capitalize}}MethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
@@ -249,15 +253,20 @@ class {{v8_class}} {
{% endif %}
{% if needs_runtime_enabled_installer %}
- {{exported}}static void installRuntimeEnabledFeatures(
- v8::Isolate* isolate,
+ {{exported}}static void InstallRuntimeEnabledFeatures(
+ v8::Isolate*,
const DOMWrapperWorld& world,
v8::Local<v8::Object> instance,
v8::Local<v8::Object> prototype,
v8::Local<v8::Function> interface);
+ {{exported}}static void InstallRuntimeEnabledFeaturesOnTemplate(
+ v8::Isolate*,
+ const DOMWrapperWorld&,
+ v8::Local<v8::FunctionTemplate> interface_template);
{% if has_partial_interface %}
static InstallRuntimeEnabledFunction install{{v8_class}}RuntimeEnabledFunction;
+ static InstallRuntimeEnabledOnTemplateFunction install{{v8_class}}RuntimeEnabledOnTemplateFunction;
{% endif %}
{% endif %}

Powered by Google App Engine
This is Rietveld 408576698