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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/partial_interface.h.tmpl

Issue 2622153002: [Bindings] Implement installRuntimeEnabledFeatures method on some classes (Closed)
Patch Set: Fix build error Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {% endif %} 35 {% endif %}
36 36
37 {% for feature in origin_trial_features %} 37 {% for feature in origin_trial_features %}
38 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); 38 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce);
39 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 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);
40 {% if not feature.needs_instance %} 40 {% if not feature.needs_instance %}
41 static void install{{feature.name}}(ScriptState*); 41 static void install{{feature.name}}(ScriptState*);
42 {% endif %} 42 {% endif %}
43 {% endfor %} 43 {% endfor %}
44 44
45 {% if needs_runtime_enabled_installer %}
46 static void installRuntimeEnabledFeatures(
47 v8::Isolate* isolate,
48 const DOMWrapperWorld& world,
49 v8::Local<v8::Object> instance,
50 v8::Local<v8::Object> prototype,
51 v8::Local<v8::Function> interface);
52 {% endif %}
53
45 private: 54 private:
46 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 55 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
47 }; 56 };
48 57
49 } // namespace blink 58 } // namespace blink
50 59
51 #endif // {{v8_class_or_partial}}_h 60 #endif // {{v8_class_or_partial}}_h
52 61
53 {% endfilter %}{# format_blink_cpp_source_code #} 62 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698