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

Unified Diff: third_party/WebKit/Source/bindings/templates/conversions.cpp

Issue 1550393002: Rename conversions.cpp to utilities.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/conversions.cpp
diff --git a/third_party/WebKit/Source/bindings/templates/conversions.cpp b/third_party/WebKit/Source/bindings/templates/conversions.cpp
deleted file mode 100644
index 7f759451c7be673f3470fc20b7b8469cf318a546..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/templates/conversions.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-{% macro v8_value_to_local_cpp_value(thing) %}
-{# This indirection is just to avoid spurious white-space lines. #}
-{{generate_v8_value_to_local_cpp_value(thing) | trim}}
-{%- endmacro %}
-
-
-{% macro generate_v8_value_to_local_cpp_value(thing) %}
-{% set item = thing.v8_value_to_local_cpp_value or thing %}
-{% if item.error_message %}
-/* {{item.error_message}} */
-{% else %}
-{% if item.declare_variable %}
-{% if item.assign_expression %}
-{{item.cpp_type}} {{item.cpp_name}} = {{item.assign_expression}};
-{% else %}
-{{item.cpp_type}} {{item.cpp_name}};
-{% endif %}
-{% else %}{# item.declare_variable #}
-{% if item.assign_expression %}
-{{item.cpp_name}} = {{item.assign_expression}};
-{% endif %}
-{% endif %}{# item.declare_variable #}
-{% if item.set_expression %}
-{{item.set_expression}};
-{% endif %}
-{% if item.check_expression %}
-if ({{item.check_expression}})
- return{% if item.return_expression %} {{item.return_expression}}{% endif %};
-{% endif %}{# item.check_expression #}
-{% endif %}{# item.error_message #}
-{% endmacro %}
-
-
-{% macro declare_enum_validation_variable(enum_values) %}
-const char* validValues[] = {
-{% for enum_value in enum_values %}
- "{{enum_value}}",
-{% endfor %}
-};
-{%-endmacro %}
-
-
-{% macro property_location(member) %}
-{% set property_location_list = [] %}
-{% if member.on_instance %}
-{% set property_location_list = property_location_list + ['V8DOMConfiguration::OnInstance'] %}
-{% endif %}
-{% if member.on_prototype %}
-{% set property_location_list = property_location_list + ['V8DOMConfiguration::OnPrototype'] %}
-{% endif %}
-{% if member.on_interface %}
-{% set property_location_list = property_location_list + ['V8DOMConfiguration::OnInterface'] %}
-{% endif %}
-{{property_location_list | join(' | ')}}
-{%- endmacro %}

Powered by Google App Engine
This is Rietveld 408576698