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

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 27033009: Making all base class DOM types throw as well (to prevent a default constructor for DOM types that … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module provides shared functionality for the system to generate 6 """This module provides shared functionality for the system to generate
7 Dart:html APIs from the IDL database.""" 7 Dart:html APIs from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import logging 10 import logging
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 self._interface_type_info = self._type_registry.TypeInfo(self._interface.id) 655 self._interface_type_info = self._type_registry.TypeInfo(self._interface.id)
656 self._current_secondary_parent = None 656 self._current_secondary_parent = None
657 self._library_name = self._renamer.GetLibraryName(self._interface) 657 self._library_name = self._renamer.GetLibraryName(self._interface)
658 658
659 def ImplementsMergedMembers(self): 659 def ImplementsMergedMembers(self):
660 return True 660 return True
661 661
662 def GenerateCallback(self, info): 662 def GenerateCallback(self, info):
663 pass 663 pass
664 664
665 def RootClassName(self):
666 return None
667
668 def AdditionalImplementedInterfaces(self): 665 def AdditionalImplementedInterfaces(self):
669 implements = super(Dart2JSBackend, self).AdditionalImplementedInterfaces() 666 implements = super(Dart2JSBackend, self).AdditionalImplementedInterfaces()
670 if self._interface_type_info.list_item_type() and self.HasIndexedGetter(): 667 if self._interface_type_info.list_item_type() and self.HasIndexedGetter():
671 implements.append('JavaScriptIndexingBehavior') 668 implements.append('JavaScriptIndexingBehavior')
672 return implements 669 return implements
673 670
674 def NativeSpec(self): 671 def NativeSpec(self):
675 native_spec = MakeNativeSpec(self._interface.javascript_binding_name) 672 native_spec = MakeNativeSpec(self._interface.javascript_binding_name)
676 return ' native "%s"' % native_spec 673 return ' native "%s"' % native_spec
677 674
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 for library_name in libraries: 1237 for library_name in libraries:
1241 self._libraries[library_name] = DartLibrary( 1238 self._libraries[library_name] = DartLibrary(
1242 library_name, template_loader, library_type, output_dir) 1239 library_name, template_loader, library_type, output_dir)
1243 1240
1244 def AddFile(self, basename, library_name, path): 1241 def AddFile(self, basename, library_name, path):
1245 self._libraries[library_name].AddFile(path) 1242 self._libraries[library_name].AddFile(path)
1246 1243
1247 def Emit(self, emitter, auxiliary_dir): 1244 def Emit(self, emitter, auxiliary_dir):
1248 for lib in self._libraries.values(): 1245 for lib in self._libraries.values():
1249 lib.Emit(emitter, auxiliary_dir) 1246 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698