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

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

Issue 409373002: IDL: Binding code generation for dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/utilities.py
diff --git a/Source/bindings/scripts/utilities.py b/Source/bindings/scripts/utilities.py
index 0aeabc20b3610e6fbef41af25430e1b57cd958e5..28beb17c94e8a842c10f7f4ddafa980f47ef0224 100644
--- a/Source/bindings/scripts/utilities.py
+++ b/Source/bindings/scripts/utilities.py
@@ -119,6 +119,11 @@ def is_callback_interface_from_idl(file_contents):
return bool(match)
+def is_dictionary_from_idl(file_contents):
+ match = re.search(r'dictionary\s+\w+\s*{', file_contents)
+ return bool(match)
+
+
def get_parent_interface(file_contents):
match = re.search(r'interface\s+'
r'\w+\s*'

Powered by Google App Engine
This is Rietveld 408576698