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

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

Issue 282873004: IDL: overload resolution for string and enumeration arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline tests Created 6 years, 7 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
Index: Source/bindings/scripts/idl_types.py
diff --git a/Source/bindings/scripts/idl_types.py b/Source/bindings/scripts/idl_types.py
index 5461158e8d533705f80fa5654138ce5e4e65d7c9..5d6c1ced8fb45d335567bd6134a37bc8fec09d06 100644
--- a/Source/bindings/scripts/idl_types.py
+++ b/Source/bindings/scripts/idl_types.py
@@ -173,6 +173,10 @@ class IdlType(object):
return self.base_type in NUMERIC_TYPES and not self.array_or_sequence_type
@property
+ def is_primitive_type(self):
+ return self.base_type in PRIMITIVE_TYPES and not self.array_or_sequence_type
+
+ @property
def is_interface_type(self):
# Anything that is not another type is an interface type.
# http://www.w3.org/TR/WebIDL/#idl-types
@@ -289,6 +293,10 @@ class IdlUnionType(object):
return False
@property
+ def is_primitivee_type(self):
+ return False
+
+ @property
def is_sequence(self):
# We do not support sequences of union types
return False
« no previous file with comments | « LayoutTests/virtual/gpu/fast/canvas/canvas-path-context-fill-expected.txt ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698