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

Unified Diff: lib/dom/scripts/systemfrog.py

Issue 10532027: Move interface members traverse logic to BaseGenerator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: lib/dom/scripts/systemfrog.py
diff --git a/lib/dom/scripts/systemfrog.py b/lib/dom/scripts/systemfrog.py
index a753e9752514923b7d70ecaf4f957b7df3d32e97..04ff7779c67c03342b12b7171ac49cb31989713f 100644
--- a/lib/dom/scripts/systemfrog.py
+++ b/lib/dom/scripts/systemfrog.py
@@ -65,7 +65,7 @@ class FrogSystem(System):
# ------------------------------------------------------------------------------
-class FrogInterfaceGenerator(object):
+class FrogInterfaceGenerator(BaseGenerator):
"""Generates a Frog class for a DOM IDL interface."""
def __init__(self, system, interface, template, super_interface, dart_code):
@@ -82,6 +82,7 @@ class FrogInterfaceGenerator(object):
dart_code: an Emitter for the file containing the Dart implementation
class.
"""
+ super(FrogInterfaceGenerator, self).__init__(system._database)
self._system = system
self._interface = interface
self._template = template
@@ -353,9 +354,6 @@ class FrogInterfaceGenerator(object):
template = self._system._templates.Load(template_file)
self._members_emitter.Emit(template, E=DartType(element_type))
- def AmendIndexer(self, element_type):
- pass
-
def AddOperation(self, info):
"""
Arguments:
@@ -381,6 +379,3 @@ class FrogInterfaceGenerator(object):
NAME=info.name,
PARAMS=params,
NATIVESTRING=native_string)
-
- def AddStaticOperation(self, info):
- pass

Powered by Google App Engine
This is Rietveld 408576698