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

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

Issue 831483004: IDL: Make enums have global visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 687e603caf942774348e4f7267b1fb2ea0284065..2eea32df34baa641a2ce5d772f836c710338f3f4 100644
--- a/Source/bindings/scripts/utilities.py
+++ b/Source/bindings/scripts/utilities.py
@@ -65,6 +65,10 @@ class ComponentInfoProvider(object):
return {}
@property
+ def enumerations(self):
+ return {}
+
+ @property
def union_types(self):
return set()
@@ -84,6 +88,10 @@ class ComponentInfoProviderCore(ComponentInfoProvider):
return self._component_info
@property
+ def enumerations(self):
+ return self._component_info['enumerations']
+
+ @property
def union_types(self):
return self._component_info['union_types']
@@ -105,6 +113,12 @@ class ComponentInfoProviderModules(ComponentInfoProvider):
return self._component_info_modules
@property
+ def enumerations(self):
+ enums = self._component_info_core['enumerations'].copy()
+ enums.update(self._component_info_modules['enumerations'])
+ return enums
+
+ @property
def union_types(self):
# Remove duplicate union types from component_info_modules to avoid
# generating multiple container generation.
« no previous file with comments | « Source/bindings/scripts/compute_interfaces_info_individual.py ('k') | Source/bindings/tests/idls/core/TestDictionary.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698