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

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

Issue 10910017: Remove local change that also got comitted in revert. (Closed) Base URL: http://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 | « no previous file | utils/apidoc/html_diff.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 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 extends_str += ' default ' + factory_provider 547 extends_str += ' default ' + factory_provider
548 548
549 # TODO(vsm): Add appropriate package / namespace syntax. 549 # TODO(vsm): Add appropriate package / namespace syntax.
550 (self._type_comment_emitter, 550 (self._type_comment_emitter,
551 self._members_emitter, 551 self._members_emitter,
552 self._top_level_emitter) = self._interface_emitter.Emit( 552 self._top_level_emitter) = self._interface_emitter.Emit(
553 interface_template + '$!TOP_LEVEL', 553 interface_template + '$!TOP_LEVEL',
554 ID=typename, 554 ID=typename,
555 EXTENDS=extends_str) 555 EXTENDS=extends_str)
556 556
557 # TODO(efortuna): Are there domMembers here also? 557 self._type_comment_emitter.Emit("/// @domName $DOMNAME",
558 self._type_comment_emitter.Emit("/// @domTypes $DOMNAME",
559 DOMNAME=self._interface.doc_js_name) 558 DOMNAME=self._interface.doc_js_name)
560 559
561 if self._backend.HasImplementation(): 560 if self._backend.HasImplementation():
562 path = self._backend.FilePathForDartImplementation() 561 path = self._backend.FilePathForDartImplementation()
563 self._system._dart_interface_file_paths.append(path) 562 self._system._dart_interface_file_paths.append(path)
564 self._implementation_emitter = self._system._emitters.FileEmitter(path) 563 self._implementation_emitter = self._system._emitters.FileEmitter(path)
565 else: 564 else:
566 self._implementation_emitter = emitter.Emitter() 565 self._implementation_emitter = emitter.Emitter()
567 self._backend.SetImplementationEmitter(self._implementation_emitter) 566 self._backend.SetImplementationEmitter(self._implementation_emitter)
568 self._implementation_members_emitter = self._backend.StartInterface() 567 self._implementation_members_emitter = self._backend.StartInterface()
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 return HtmlDart2JSClassGenerator(self, interface) 1230 return HtmlDart2JSClassGenerator(self, interface)
1232 1231
1233 def GenerateLibraries(self, dart_files): 1232 def GenerateLibraries(self, dart_files):
1234 self._GenerateLibFile( 1233 self._GenerateLibFile(
1235 'html_dart2js.darttemplate', 1234 'html_dart2js.darttemplate',
1236 os.path.join(self._output_dir, 'html_dart2js.dart'), 1235 os.path.join(self._output_dir, 'html_dart2js.dart'),
1237 dart_files) 1236 dart_files)
1238 1237
1239 def Finish(self): 1238 def Finish(self):
1240 pass 1239 pass
OLDNEW
« no previous file with comments | « no previous file | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698