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

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

Issue 1752983003: Moved ChromiumSubscribeUniform to web_gl (Closed) Base URL: git@github.com:dart-lang/sdk.git@integration
Patch Set: Merged from integration to master Created 4 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 unified diff | Download patch
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/scripts/systemnative.py » ('j') | 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 731
732 # ------------------------------------------------------------------------------ 732 # ------------------------------------------------------------------------------
733 733
734 class Dart2JSBackend(HtmlDartGenerator): 734 class Dart2JSBackend(HtmlDartGenerator):
735 """Generates a dart2js class for the dart:html library from a DOM IDL 735 """Generates a dart2js class for the dart:html library from a DOM IDL
736 interface. 736 interface.
737 """ 737 """
738 738
739 def __init__(self, interface, options, logging_level=logging.WARNING): 739 def __init__(self, interface, options, logging_level=logging.WARNING):
740 super(Dart2JSBackend, self).__init__(interface, options, False) 740 super(Dart2JSBackend, self).__init__(interface, options, False, _logger)
741 741
742 self._database = options.database 742 self._database = options.database
743 self._template_loader = options.templates 743 self._template_loader = options.templates
744 self._type_registry = options.type_registry 744 self._type_registry = options.type_registry
745 self._renamer = options.renamer 745 self._renamer = options.renamer
746 self._metadata = options.metadata 746 self._metadata = options.metadata
747 self._interface_type_info = self._type_registry.TypeInfo(self._interface.id) 747 self._interface_type_info = self._type_registry.TypeInfo(self._interface.id)
748 self._current_secondary_parent = None 748 self._current_secondary_parent = None
749 self._library_name = self._renamer.GetLibraryName(self._interface) 749 self._library_name = self._renamer.GetLibraryName(self._interface)
750
751 _logger.setLevel(logging_level) 750 _logger.setLevel(logging_level)
752 751
753 def ImplementsMergedMembers(self): 752 def ImplementsMergedMembers(self):
754 return True 753 return True
755 754
756 def GenerateCallback(self, info): 755 def GenerateCallback(self, info):
757 pass 756 pass
758 757
759 def AdditionalImplementedInterfaces(self): 758 def AdditionalImplementedInterfaces(self):
760 implements = super(Dart2JSBackend, self).AdditionalImplementedInterfaces() 759 implements = super(Dart2JSBackend, self).AdditionalImplementedInterfaces()
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1335
1337 def AddFile(self, basename, library_name, path): 1336 def AddFile(self, basename, library_name, path):
1338 self._libraries[library_name].AddFile(path) 1337 self._libraries[library_name].AddFile(path)
1339 1338
1340 def AddTypeEntry(self, library_name, idl_name, dart_name): 1339 def AddTypeEntry(self, library_name, idl_name, dart_name):
1341 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1340 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1342 1341
1343 def Emit(self, emitter, auxiliary_dir): 1342 def Emit(self, emitter, auxiliary_dir):
1344 for lib in self._libraries.values(): 1343 for lib in self._libraries.values():
1345 lib.Emit(emitter, auxiliary_dir) 1344 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698