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

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

Issue 10696209: MutationObserver (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
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
11 from systemfrog import * 11 from systemfrog import *
12 from systeminterface import * 12 from systeminterface import *
13 13
14 _js_custom_members = set([ 14 _js_custom_members = set([
15 'IDBDatabase.transaction',
15 'IFrameElement.contentWindow', 16 'IFrameElement.contentWindow',
16 'Window.document', 17 'Window.document',
17 'Window.top', 18 'Window.top',
18 'Window.location', 19 'Window.location',
19 'Window.open', 20 'Window.open',
20 'IDBDatabase.transaction',
21 ]) 21 ])
22 22
23 # This map controls merging of interfaces in dart:html library. 23 # This map controls merging of interfaces in dart:html library.
24 # All constants, attributes, and operations of merged interface (key) are 24 # All constants, attributes, and operations of merged interface (key) are
25 # added to target interface (value). All references to the merged interface 25 # added to target interface (value). All references to the merged interface
26 # (e.g. parameter types, return types, parent interfaces) are replaced with 26 # (e.g. parameter types, return types, parent interfaces) are replaced with
27 # target interface. There are two important restrictions: 27 # target interface. There are two important restrictions:
28 # 1) Merged and target interfaces shouldn't have common members, otherwise there 28 # 1) Merged and target interfaces shouldn't have common members, otherwise there
29 # would be duplicated declarations in generated Dart code. 29 # would be duplicated declarations in generated Dart code.
30 # 2) Merged interface should be direct child of target interface, so the 30 # 2) Merged interface should be direct child of target interface, so the
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 return HtmlFrogClassGenerator(self, interface) 1008 return HtmlFrogClassGenerator(self, interface)
1009 1009
1010 def GenerateLibraries(self, dart_files): 1010 def GenerateLibraries(self, dart_files):
1011 self._GenerateLibFile( 1011 self._GenerateLibFile(
1012 'html_frog.darttemplate', 1012 'html_frog.darttemplate',
1013 os.path.join(self._output_dir, 'html_frog.dart'), 1013 os.path.join(self._output_dir, 'html_frog.dart'),
1014 dart_files) 1014 dart_files)
1015 1015
1016 def Finish(self): 1016 def Finish(self):
1017 pass 1017 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698