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

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

Issue 10534130: Wrap Location object on Firefox. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | lib/dom/templates/html/frog/html_frog.darttemplate » ('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 from systemfrog import * 9 from systemfrog import *
10 from systeminterface import * 10 from systeminterface import *
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 "Node.lookupPrefix", 266 "Node.lookupPrefix",
267 "Node.get:PROCESSING_INSTRUCTION_NODE", 267 "Node.get:PROCESSING_INSTRUCTION_NODE",
268 "IFrameElement.get:contentDocument", 268 "IFrameElement.get:contentDocument",
269 "Window.get:frameElement", 269 "Window.get:frameElement",
270 ]) 270 ])
271 271
272 _html_library_custom = set([ 272 _html_library_custom = set([
273 'IFrameElement.get:contentWindow', 273 'IFrameElement.get:contentWindow',
274 'Window.get:document', 274 'Window.get:document',
275 'Window.get:top', 275 'Window.get:top',
276 'Window.get:location',
277 'Window.set:location',
276 'IDBDatabase.transaction', 278 'IDBDatabase.transaction',
277 ]) 279 ])
278 280
279 # This map controls merging of interfaces in dart:html library. 281 # This map controls merging of interfaces in dart:html library.
280 # All constants, attributes, and operations of merged interface (key) are 282 # All constants, attributes, and operations of merged interface (key) are
281 # added to target interface (value). All references to the merged interface 283 # added to target interface (value). All references to the merged interface
282 # (e.g. parameter types, return types, parent interfaces) are replaced with 284 # (e.g. parameter types, return types, parent interfaces) are replaced with
283 # target interface. There are two important restrictions: 285 # target interface. There are two important restrictions:
284 # 1) Merged and target interfaces shouldn't have common members, otherwise there 286 # 1) Merged and target interfaces shouldn't have common members, otherwise there
285 # would be duplicated declarations in generated Dart code. 287 # would be duplicated declarations in generated Dart code.
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 Collect(database.GetInterface(parent.type.id), 1456 Collect(database.GetInterface(parent.type.id),
1455 seen, collected) 1457 seen, collected)
1456 1458
1457 inheritance_closure = {} 1459 inheritance_closure = {}
1458 for interface in database.GetInterfaces(): 1460 for interface in database.GetInterfaces():
1459 seen = set() 1461 seen = set()
1460 collected = [] 1462 collected = []
1461 Collect(interface, seen, collected) 1463 Collect(interface, seen, collected)
1462 inheritance_closure[interface.id] = collected 1464 inheritance_closure[interface.id] = collected
1463 return inheritance_closure 1465 return inheritance_closure
OLDNEW
« no previous file with comments | « no previous file | lib/dom/templates/html/frog/html_frog.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698