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

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

Issue 1583773003: Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used incons… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove tests to put with matching dart2js tests Created 4 years, 11 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/generator.py ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 if interface_name == 'ClientRect' or interface_name == 'DomRectReadOnly': 607 if interface_name == 'ClientRect' or interface_name == 'DomRectReadOnly':
608 js_interop_equivalence_op = '' 608 js_interop_equivalence_op = ''
609 609
610 js_interop_wrapper = ''' 610 js_interop_wrapper = '''
611 611
612 @Deprecated("Internal Use Only") 612 @Deprecated("Internal Use Only")
613 static {0} internalCreate{0}() {{ 613 static {0} internalCreate{0}() {{
614 return new {0}._internalWrap(); 614 return new {0}._internalWrap();
615 }} 615 }}
616 616
617 factory {0}._internalWrap() {{ 617 external factory {0}._internalWrap();
618 return new {0}.internal_();
619 }}
620 618
621 @Deprecated("Internal Use Only") 619 @Deprecated("Internal Use Only")
622 {0}.internal_() : super.internal_(); 620 {0}.internal_() : super.internal_();
623 621
624 '''.format(class_name) 622 '''.format(class_name)
625 if base_class == 'NativeFieldWrapperClass2' or base_class == 'DartHtmlDomObj ect': 623 if base_class == 'NativeFieldWrapperClass2' or base_class == 'DartHtmlDomObj ect':
626 js_interop_wrapper = ''' 624 js_interop_wrapper = '''
627 @Deprecated("Internal Use Only") 625 @Deprecated("Internal Use Only")
628 static {0} internalCreate{0}() {{ 626 static {0} internalCreate{0}() {{
629 return new {0}._internalWrap(); 627 return new {0}._internalWrap();
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 1336
1339 def AddFile(self, basename, library_name, path): 1337 def AddFile(self, basename, library_name, path):
1340 self._libraries[library_name].AddFile(path) 1338 self._libraries[library_name].AddFile(path)
1341 1339
1342 def AddTypeEntry(self, library_name, idl_name, dart_name): 1340 def AddTypeEntry(self, library_name, idl_name, dart_name):
1343 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1341 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1344 1342
1345 def Emit(self, emitter, auxiliary_dir): 1343 def Emit(self, emitter, auxiliary_dir):
1346 for lib in self._libraries.values(): 1344 for lib in self._libraries.values():
1347 lib.Emit(emitter, auxiliary_dir) 1345 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698