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

Unified Diff: tools/dom/scripts/htmldartgenerator.py

Issue 12474007: Revert 20127 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « tests/html/notifications_test.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmldartgenerator.py
diff --git a/tools/dom/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py
index 85ffd4c4acffc1099f58525524202761cee4b166..cebafab4dd146659431d1b26536537b4950930a8 100644
--- a/tools/dom/scripts/htmldartgenerator.py
+++ b/tools/dom/scripts/htmldartgenerator.py
@@ -23,10 +23,6 @@ _secure_base_types = {
'History': 'HistoryBase',
}
-_custom_factories = [
- 'Notification',
- 'EventSource',
-]
class HtmlDartGenerator(object):
def __init__(self, interface, options):
@@ -489,18 +485,12 @@ class HtmlDartGenerator(object):
def IsOptional(signature_index, argument):
return self.IsConstructorArgumentOptional(argument)
- custom_factory_ctr = self._interface.id in _custom_factories
- constructor_full_name = constructor_info._ConstructorFullName(
- self._DartType)
self._GenerateOverloadDispatcher(
constructor_info.idl_args,
False,
[info.name for info in constructor_info.param_infos],
- emitter.Format('$(ANNOTATIONS)$FACTORY_KEYWORD $CTOR($PARAMS)',
- FACTORY_KEYWORD=('factory' if not custom_factory_ctr else
- 'static %s' % constructor_full_name),
- CTOR=(('' if not custom_factory_ctr else '_factory')
- + constructor_full_name),
+ emitter.Format('$(ANNOTATIONS)factory $CTOR($PARAMS)',
+ CTOR=constructor_info._ConstructorFullName(self._DartType),
ANNOTATIONS=annotations,
PARAMS=constructor_info.ParametersDeclaration(self._DartType)),
GenerateCall,
« no previous file with comments | « tests/html/notifications_test.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698