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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/partial_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 unified diff | Download patch
OLDNEW
1 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 #ifndef {{v8_class_or_partial}}_h 4 #ifndef {{v8_class_or_partial}}_h
5 #define {{v8_class_or_partial}}_h 5 #define {{v8_class_or_partial}}_h
6 6
7 {% for filename in header_includes %} 7 {% for filename in header_includes %}
8 #include "{{filename}}" 8 #include "{{filename}}"
9 {% endfor %} 9 {% endfor %}
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 {% for feature in optional_features %} 36 {% for feature in optional_features %}
37 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); 37 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce);
38 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface); 38 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface);
39 {% if not feature.needs_instance %} 39 {% if not feature.needs_instance %}
40 static void install{{feature.name}}(ScriptState*); 40 static void install{{feature.name}}(ScriptState*);
41 {% endif %} 41 {% endif %}
42 {% endfor %} 42 {% endfor %}
43 43
44 {% if needs_runtime_enabled_installer %} 44 {% if needs_runtime_enabled_installer %}
45 static void installRuntimeEnabledFeatures( 45 static void InstallRuntimeEnabledFeatures(
46 v8::Isolate* isolate, 46 v8::Isolate*,
47 const DOMWrapperWorld& world, 47 const DOMWrapperWorld&,
48 v8::Local<v8::Object> instance, 48 v8::Local<v8::Object> instance,
49 v8::Local<v8::Object> prototype, 49 v8::Local<v8::Object> prototype,
50 v8::Local<v8::Function> interface); 50 v8::Local<v8::Function> interface);
51 static void InstallRuntimeEnabledFeaturesOnTemplate(
52 v8::Isolate*,
53 const DOMWrapperWorld&,
54 v8::Local<v8::FunctionTemplate> interface_template);
51 {% endif %} 55 {% endif %}
52 56
53 // Callback functions 57 // Callback functions
54 {% for attribute in attributes %} 58 {% for attribute in attributes %}
55 {% if attribute.is_cached_accessor %} 59 {% if attribute.is_cached_accessor %}
56 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey( v8::Isolate* isolate); 60 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey( v8::Isolate* isolate);
57 {% endif %} 61 {% endif %}
58 {% for world_suffix in attribute.world_suffixes %} 62 {% for world_suffix in attribute.world_suffixes %}
59 {% if not attribute.constructor_type %} 63 {% if not attribute.constructor_type %}
60 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi x}}( 64 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi x}}(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 108
105 private: 109 private:
106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 110 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
107 }; 111 };
108 112
109 } // namespace blink 113 } // namespace blink
110 114
111 #endif // {{v8_class_or_partial}}_h 115 #endif // {{v8_class_or_partial}}_h
112 116
113 {% endfilter %}{# format_blink_cpp_source_code #} 117 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698