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

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

Issue 1236933003: Remove blink_jsObject when --gen-interop is not used. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 self._library_name) 664 self._library_name)
665 self._backend.AddConstructors( 665 self._backend.AddConstructors(
666 constructors, factory_provider, factory_constructor_name) 666 constructors, factory_provider, factory_constructor_name)
667 667
668 isElement = False 668 isElement = False
669 for parent in self._database.Hierarchy(self._interface): 669 for parent in self._database.Hierarchy(self._interface):
670 if parent.id == 'Element': 670 if parent.id == 'Element':
671 isElement = True 671 isElement = True
672 672
673 # Write out the JsInterop code. 673 # Write out the JsInterop code.
674 if implementation_members_emitter and self._options.templates._conditions['D ARTIUM']: 674 if (implementation_members_emitter and
675 self._options.templates._conditions['DARTIUM'] and
676 self._options.dart_js_interop):
675 implementation_members_emitter.Emit(js_interop_wrapper) 677 implementation_members_emitter.Emit(js_interop_wrapper)
676 678
677 if isElement and self._interface.id != 'Element': 679 if isElement and self._interface.id != 'Element':
678 implementation_members_emitter.Emit( 680 implementation_members_emitter.Emit(
679 ' /**\n' 681 ' /**\n'
680 ' * Constructor instantiated by the DOM when a custom element has be en created.\n' 682 ' * Constructor instantiated by the DOM when a custom element has be en created.\n'
681 ' *\n' 683 ' *\n'
682 ' * This can only be called by subclasses from their created constru ctor.\n' 684 ' * This can only be called by subclasses from their created constru ctor.\n'
683 ' */\n' 685 ' */\n'
684 ' $CLASSNAME.created() : super.created();\n', 686 ' $CLASSNAME.created() : super.created();\n',
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 1365
1364 def AddFile(self, basename, library_name, path): 1366 def AddFile(self, basename, library_name, path):
1365 self._libraries[library_name].AddFile(path) 1367 self._libraries[library_name].AddFile(path)
1366 1368
1367 def AddTypeEntry(self, library_name, idl_name, dart_name): 1369 def AddTypeEntry(self, library_name, idl_name, dart_name):
1368 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1370 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1369 1371
1370 def Emit(self, emitter, auxiliary_dir): 1372 def Emit(self, emitter, auxiliary_dir):
1371 for lib in self._libraries.values(): 1373 for lib in self._libraries.values():
1372 lib.Emit(emitter, auxiliary_dir) 1374 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698