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

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

Issue 2260113002: Lazily install origin trial features on V8 objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase after parent CL landed Created 4 years, 2 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 16 matching lines...) Expand all
27 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #} 27 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #}
28 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co nst v8::PropertyCallbackInfo<void>&); 28 static void {{attribute.name}}AttributeSetterCustom(v8::Local<v8::Value>, co nst v8::PropertyCallbackInfo<void>&);
29 {% endif %} 29 {% endif %}
30 {% endfor %} 30 {% endfor %}
31 {% if unscopables or has_conditional_attributes_on_prototype or 31 {% if unscopables or has_conditional_attributes_on_prototype or
32 methods | conditionally_exposed(is_partial) %} 32 methods | conditionally_exposed(is_partial) %}
33 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8: :FunctionTemplate>); 33 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8: :FunctionTemplate>);
34 {% endif %} 34 {% endif %}
35 {% for origin_trial_feature in origin_trial_features %}{{newline}} 35 {% for origin_trial_feature in origin_trial_features %}{{newline}}
36 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8: :Object> instance); 36 static void install{{origin_trial_feature.name}}(ScriptState*, v8::Local<v8: :Object> instance);
37 static void install{{origin_trial_feature.name}}(v8::Isolate*, const DOMWrap perWorld&, v8::Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8:: Local<v8::Function> interface);
37 {% if not origin_trial_feature.needs_instance %} 38 {% if not origin_trial_feature.needs_instance %}
38 static void install{{origin_trial_feature.name}}(ScriptState*); 39 static void install{{origin_trial_feature.name}}(ScriptState*);
39 {% endif %} 40 {% endif %}
40 {% endfor %} 41 {% endfor %}
41 private: 42 private:
42 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld& , v8::Local<v8::FunctionTemplate> interfaceTemplate); 43 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld& , v8::Local<v8::FunctionTemplate> interfaceTemplate);
43 }; 44 };
44 } 45 }
45 #endif // {{v8_class_or_partial}}_h 46 #endif // {{v8_class_or_partial}}_h
46 47
47 {% endfilter %}{# format_blink_cpp_source_code #} 48 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698