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

Unified Diff: Source/bindings/scripts/v8_utilities.py

Issue 618373003: [bindings] partial interfaces should not violate componentization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/v8_utilities.py
diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py
index 9107a95a9c2e1a7bf4eea35d618ea66f62551717..251a0a6a0d0f8c991a6571f5f66aa3f09dfdbda5 100644
--- a/Source/bindings/scripts/v8_utilities.py
+++ b/Source/bindings/scripts/v8_utilities.py
@@ -145,6 +145,13 @@ def v8_class_name(interface):
return v8_types.v8_type(interface.name)
+def v8_class_name_or_partial(interface):
+ class_name = v8_class_name(interface)
+ if interface.is_partial:
+ return ''.join([class_name, 'Partial'])
+ return class_name
+
+
################################################################################
# Specific extended attributes
################################################################################
@@ -296,6 +303,13 @@ def cpp_name(definition_or_member):
return extended_attributes['ImplementedAs']
+def cpp_name_or_partial(interface):
+ cpp_class_name = cpp_name(interface)
+ if interface.is_partial:
+ return ''.join([cpp_class_name, 'Partial'])
+ return cpp_class_name
+
+
# [MeasureAs]
def measure_as(definition_or_member):
extended_attributes = definition_or_member.extended_attributes
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698