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

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

Issue 41463002: Add DOMRect for Firefox Rectangle behavior. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « sdk/lib/html/dartium/html_dartium.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 systems to generate 6 """This module provides shared functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import copy 9 import copy
10 import json 10 import json
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 # Nodes with different tags in different browsers can be listed as multiple 90 # Nodes with different tags in different browsers can be listed as multiple
91 # tags here provided there is not conflict in usage (e.g. browser X has tag 91 # tags here provided there is not conflict in usage (e.g. browser X has tag
92 # T and no other browser has tag T). 92 # T and no other browser has tag T).
93 93
94 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode', 94 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode',
95 'AudioContext': 'AudioContext,webkitAudioContext', 95 'AudioContext': 'AudioContext,webkitAudioContext',
96 96
97 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger', 97 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger',
98 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter', 98 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter',
99 99
100 'ClientRect': 'ClientRect,DOMRect',
101
100 'CSSStyleDeclaration': 102 'CSSStyleDeclaration':
101 # IE Firefox 103 # IE Firefox
102 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', 104 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties',
103 105
104 'ApplicationCache': 106 'ApplicationCache':
105 'ApplicationCache,DOMApplicationCache,OfflineResourceList', 107 'ApplicationCache,DOMApplicationCache,OfflineResourceList',
106 108
107 'HTMLTableCellElement': 109 'HTMLTableCellElement':
108 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t', 110 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t',
109 111
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 if type_data.clazz == 'BasicTypedList': 1251 if type_data.clazz == 'BasicTypedList':
1250 if type_name == 'ArrayBuffer': 1252 if type_name == 'ArrayBuffer':
1251 dart_interface_name = 'ByteBuffer' 1253 dart_interface_name = 'ByteBuffer'
1252 else: 1254 else:
1253 dart_interface_name = self._renamer.RenameInterfaceId(type_name) 1255 dart_interface_name = self._renamer.RenameInterfaceId(type_name)
1254 return BasicTypedListIDLTypeInfo( 1256 return BasicTypedListIDLTypeInfo(
1255 type_name, type_data, dart_interface_name, self) 1257 type_name, type_data, dart_interface_name, self)
1256 1258
1257 class_name = '%sIDLTypeInfo' % type_data.clazz 1259 class_name = '%sIDLTypeInfo' % type_data.clazz
1258 return globals()[class_name](type_name, type_data) 1260 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698