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

Side by Side Diff: lib/html/scripts/systemhtml.py

Issue 10928104: Revert some more cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/html/dart2js/html_dart2js.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 10
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 self._members_emitter.Emit( 977 self._members_emitter.Emit(
978 '\n void set $HTML_NAME($TYPE value)' 978 '\n void set $HTML_NAME($TYPE value)'
979 ' native "this.$NAME = value;";\n', 979 ' native "this.$NAME = value;";\n',
980 HTML_NAME=html_name, 980 HTML_NAME=html_name,
981 NAME=attr.id, 981 NAME=attr.id,
982 TYPE=self._NarrowInputType(attr.type.id)) 982 TYPE=self._NarrowInputType(attr.type.id))
983 983
984 def _AddConvertingGetter(self, attr, html_name, conversion): 984 def _AddConvertingGetter(self, attr, html_name, conversion):
985 self._members_emitter.Emit( 985 self._members_emitter.Emit(
986 '\n $RETURN_TYPE get $HTML_NAME => $CONVERT(this._$(HTML_NAME));' 986 '\n $RETURN_TYPE get $HTML_NAME => $CONVERT(this._$(HTML_NAME));'
987 '\n $NATIVE_TYPE get _$HTML_NAME native "return this.$NAME;";' 987 '\n $NATIVE_TYPE get _$HTML_NAME() native "return this.$NAME;";'
988 '\n', 988 '\n',
989 CONVERT=conversion.function_name, 989 CONVERT=conversion.function_name,
990 HTML_NAME=html_name, 990 HTML_NAME=html_name,
991 NAME=attr.id, 991 NAME=attr.id,
992 RETURN_TYPE=conversion.output_type, 992 RETURN_TYPE=conversion.output_type,
993 NATIVE_TYPE=conversion.input_type) 993 NATIVE_TYPE=conversion.input_type)
994 994
995 def _AddConvertingSetter(self, attr, html_name, conversion): 995 def _AddConvertingSetter(self, attr, html_name, conversion):
996 self._members_emitter.Emit( 996 self._members_emitter.Emit(
997 '\n void set $HTML_NAME($INPUT_TYPE value) {' 997 '\n void set $HTML_NAME($INPUT_TYPE value) {'
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 return HtmlDart2JSClassGenerator(self, interface) 1233 return HtmlDart2JSClassGenerator(self, interface)
1234 1234
1235 def GenerateLibraries(self, dart_files): 1235 def GenerateLibraries(self, dart_files):
1236 self._GenerateLibFile( 1236 self._GenerateLibFile(
1237 'html_dart2js.darttemplate', 1237 'html_dart2js.darttemplate',
1238 os.path.join(self._output_dir, 'html_dart2js.dart'), 1238 os.path.join(self._output_dir, 'html_dart2js.dart'),
1239 dart_files) 1239 dart_files)
1240 1240
1241 def Finish(self): 1241 def Finish(self):
1242 pass 1242 pass
OLDNEW
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698