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

Unified Diff: lib/html/scripts/generator.py

Issue 11365019: Merging dart:html interfaces and implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding generated files. Created 8 years, 1 month 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 | lib/html/scripts/htmldartgenerator.py » ('j') | lib/html/scripts/htmldartgenerator.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/generator.py
diff --git a/lib/html/scripts/generator.py b/lib/html/scripts/generator.py
index a7332a9e5ba5882f4b1f143d258a8147262bbed1..343174f37f8ccecccfa995758dbf61235f30c485 100644
--- a/lib/html/scripts/generator.py
+++ b/lib/html/scripts/generator.py
@@ -446,7 +446,7 @@ def TypeName(type_ids, interface):
return 'dynamic'
def ImplementationClassNameForInterfaceName(interface_name):
- return '_%sImpl' % interface_name
+ return interface_name
# ------------------------------------------------------------------------------
@@ -702,11 +702,17 @@ class InterfaceIDLTypeInfo(IDLTypeInfo):
def implementation_name(self):
Anton Muhin 2012/11/02 12:55:47 implementation_name looks rather like an interface
blois 2012/11/02 19:25:28 This is still the implementation name, assuming th
if self.list_item_type():
- return ImplementationClassNameForInterfaceName(self.idl_type())
- implementation_name = ImplementationClassNameForInterfaceName(
- self.interface_name())
+ implementation_name = ImplementationClassNameForInterfaceName(
+ self.idl_type())
+ else:
+ implementation_name = ImplementationClassNameForInterfaceName(
+ self.interface_name())
if self.merged_into():
implementation_name = '%s_Merged' % implementation_name
+
+ if not self.has_generated_interface():
+ implementation_name = '_%s' % implementation_name
+
return implementation_name
def has_generated_interface(self):
« no previous file with comments | « no previous file | lib/html/scripts/htmldartgenerator.py » ('j') | lib/html/scripts/htmldartgenerator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698