OLD | NEW |
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 Loading... |
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 Loading... |
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 #} |
OLD | NEW |