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

Unified Diff: lib/dom/scripts/systemnative.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
« lib/dom/scripts/systembase.py ('K') | « lib/dom/scripts/systeminterface.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index 9429cadb82f9d3fadda3f652c835a2fb4922529a..6e3569847f7d731ec127acdc3be58f3e23413fe1 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -8,13 +8,13 @@ native binding from the IDL database."""
import emitter
import os
+import systembase
from generator import *
-from systembase import *
from systemhtml import DomToHtmlEvent, DomToHtmlEvents, HtmlSystemShared
from systemhtml import HtmlElementConstructorInfos
from systemhtml import EmitHtmlElementFactoryConstructors
-class NativeImplementationSystem(System):
+class NativeImplementationSystem(systembase.System):
def __init__(self, templates, database, html_database, html_renames,
emitters, output_dir):
@@ -192,7 +192,7 @@ class NativeImplementationSystem(System):
return self._dom_impl_files
-class NativeImplementationGenerator(object):
+class NativeImplementationGenerator(systembase.BaseGenerator):
"""Generates Dart implementation for one DOM IDL interface."""
def __init__(self, system, interface,
@@ -213,6 +213,7 @@ class NativeImplementationGenerator(object):
base_members: a set of names of members defined in a base class. This is
used to avoid static member 'overriding' in the generated Dart code.
"""
+ super(NativeImplementationGenerator, self).__init__(system._database)
self._system = system
self._interface = interface
self._dart_impl_emitter = dart_impl_emitter
« lib/dom/scripts/systembase.py ('K') | « lib/dom/scripts/systeminterface.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698