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

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

Issue 2768393004: [Bindings] Rename CachedAccessorCallback method in generated code (Closed)
Patch Set: . Created 3 years, 8 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 v8::Isolate* isolate, 46 v8::Isolate* isolate,
47 const DOMWrapperWorld& world, 47 const DOMWrapperWorld& world,
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 {% endif %} 51 {% endif %}
52 52
53 // Callback functions 53 // Callback functions
54 {% for attribute in attributes %} 54 {% for attribute in attributes %}
55 {% if attribute.is_cached_accessor %} 55 {% if attribute.is_cached_accessor %}
56 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedAccessorCall back(v8::Isolate* isolate); 56 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey( v8::Isolate* isolate);
57 {% endif %} 57 {% endif %}
58 {% for world_suffix in attribute.world_suffixes %} 58 {% for world_suffix in attribute.world_suffixes %}
59 {% if not attribute.constructor_type %} 59 {% if not attribute.constructor_type %}
60 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi x}}( 60 {{exported}}static void {{attribute.name}}AttributeGetterCallback{{world_suffi x}}(
61 {%- if attribute.is_data_type_property %} 61 {%- if attribute.is_data_type_property %}
62 v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info 62 v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info
63 {%- else %} 63 {%- else %}
64 const v8::FunctionCallbackInfo<v8::Value>& info 64 const v8::FunctionCallbackInfo<v8::Value>& info
65 {%- endif %}); 65 {%- endif %});
66 {% elif attribute.needs_constructor_getter_callback %} 66 {% elif attribute.needs_constructor_getter_callback %}
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 private: 105 private:
106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 106 static void install{{v8_class}}Template(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // {{v8_class_or_partial}}_h 111 #endif // {{v8_class_or_partial}}_h
112 112
113 {% endfilter %}{# format_blink_cpp_source_code #} 113 {% 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