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

Side by Side Diff: sky/engine/bindings/scripts/templates/attributes_cpp.template

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better Created 5 years, 10 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 {##############################################################################} 1 {##############################################################################}
2 {% macro attribute_getter(cpp_class, attribute) %} 2 {% macro attribute_getter(cpp_class, attribute) %}
3 static void {{static_attribute_name(attribute, 'Getter')}}(Dart_NativeArguments args) { 3 static void {{static_attribute_name(attribute, 'Getter')}}(Dart_NativeArguments args) {
4 {% if attribute.is_getter_raises_exception or attribute.is_call_with_execution_c ontext %} 4 {% if attribute.is_getter_raises_exception or attribute.is_call_with_execution_c ontext %}
5 Dart_Handle exception = nullptr; 5 Dart_Handle exception = nullptr;
6 {% endif %} 6 {% endif %}
7 { 7 {
8 {% if attribute.is_call_with_execution_context %} 8 {% if attribute.is_call_with_execution_context %}
9 ExecutionContext* context = DOMDartState::CurrentDocument(); 9 ExecutionContext* context = DOMDartState::CurrentDocument();
10 if (!context) { 10 if (!context) {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 {% macro generate_attribute_symbolizer_body(dart_class, class_name, attribute) % } 195 {% macro generate_attribute_symbolizer_body(dart_class, class_name, attribute) % }
196 if (native_function == {{dart_class}}Internal::{{static_attribute_name(attribute , 'Getter')}}) { 196 if (native_function == {{dart_class}}Internal::{{static_attribute_name(attribute , 'Getter')}}) {
197 return reinterpret_cast<const uint8_t*>("{{attribute.native_entry_getter.res olver_string}}"); 197 return reinterpret_cast<const uint8_t*>("{{attribute.native_entry_getter.res olver_string}}");
198 } 198 }
199 {% if not attribute.is_read_only %} 199 {% if not attribute.is_read_only %}
200 if (native_function == {{dart_class}}Internal::{{static_attribute_name(attribute , 'Setter')}}) { 200 if (native_function == {{dart_class}}Internal::{{static_attribute_name(attribute , 'Setter')}}) {
201 return reinterpret_cast<const uint8_t*>("{{attribute.native_entry_setter.res olver_string}}"); 201 return reinterpret_cast<const uint8_t*>("{{attribute.native_entry_setter.res olver_string}}");
202 } 202 }
203 {% endif %} 203 {% endif %}
204 {% endmacro %} 204 {% endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698