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

Unified Diff: third_party/WebKit/Source/bindings/scripts/idl_definitions.py

Issue 2130223002: IDL: traverse enums and implements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/scripts/idl_definitions.py
diff --git a/third_party/WebKit/Source/bindings/scripts/idl_definitions.py b/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
index c66920b0ec4abcfe44f83c693df203b02a6075ce..1428577ab8d75419bc87450e5b6505132108ffed 100644
--- a/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
+++ b/third_party/WebKit/Source/bindings/scripts/idl_definitions.py
@@ -137,6 +137,10 @@ class IdlDefinitions(object):
callback_function.accept(visitor)
for dictionary in self.dictionaries.itervalues():
dictionary.accept(visitor)
+ for enumeration in self.enumerations.itervalues():
+ enumeration.accept(visitor)
+ for implement in self.implements:
+ implement.accept(visitor)
for typedef in self.typedefs.itervalues():
typedef.accept(visitor)
@@ -254,6 +258,9 @@ class IdlEnum(object):
for child in node.GetChildren():
self.values.append(child.GetName())
+ def accept(self, visitor):
+ visitor.visit_enumeration(self)
+
################################################################################
# Typedefs
@@ -837,6 +844,9 @@ class IdlImplement(object):
self.left_interface = node.GetName()
self.right_interface = node.GetProperty('REFERENCE')
+ def accept(self, visitor):
+ visitor.visit_implement(self)
+
################################################################################
# Extended attributes
@@ -1092,6 +1102,12 @@ class Visitor(object):
def visit_dictionary_member(self, member):
self.visit_typed_object(member)
+ def visit_enumeration(self, enumeration):
+ pass
+
+ def visit_implement(self, implement):
+ pass
+
def visit_interface(self, interface):
pass
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698