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

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

Issue 10703194: Extract interfaces and members renaming logic to a new HtmlRenamer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« lib/dom/scripts/htmlrenamer.py ('K') | « lib/dom/scripts/systemhtml.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 e6a803b3bb208e69a4f8fa255791e6393a212519..344d7b4388a5c2955027b149ece7299e2b49f611 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -165,7 +165,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
system._database, interface)
self._system = system
self._current_secondary_parent = None
- self._html_interface_name = system._type_registry.InterfaceName(self._interface.id)
+ self._html_interface_name = system._renamer.RenameInterface(self._interface)
def HasImplementation(self):
return not IsPureInterface(self._interface.id)
@@ -418,7 +418,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
is_active_test = lambda interface: 'ActiveDOMObject' in interface.ext_attrs
is_event_target_test = lambda interface: 'EventTarget' in interface.ext_attrs
def TypeCheckHelper(test):
- return 'true' if _FindInHierarchy(self._database, self._interface, test) else 'false'
+ return 'true' if self._database.FindInHierarchy(self._interface, test) else 'false'
self._cpp_header_emitter.Emit(
self._system._templates.Load('cpp_header.template'),
« lib/dom/scripts/htmlrenamer.py ('K') | « lib/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698