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

Side by Side Diff: client/dom/scripts/dartgenerator.py

Issue 8344019: Remove createXMLHttpRequest and other 'factory' constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « client/dom/idl/dart/dart.idl ('k') | client/dom/scripts/template_wrapping_dom.js » ('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) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, 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 generates Dart APIs from the IDL database.""" 6 """This module generates Dart APIs from the IDL database."""
7 7
8 import emitter 8 import emitter
9 import idlnode 9 import idlnode
10 import logging 10 import logging
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 'Notification', 58 'Notification',
59 'NotificationCenter', 59 'NotificationCenter',
60 'TouchList', 60 'TouchList',
61 'Touch' 61 'Touch'
62 ]) 62 ])
63 63
64 # 64 #
65 # Custom methods that must be implemented by hand. 65 # Custom methods that must be implemented by hand.
66 # 66 #
67 _custom_methods = set([ 67 _custom_methods = set([
68 ('DOMWindow', 'createFileReader'),
69 ('DOMWindow', 'createWebKitCSSMatrix'),
70 ('DOMWindow', 'createWebKitPoint'),
71 ('DOMWindow', 'createXMLHttpRequest'),
72 ('DOMWindow', 'setInterval'), 68 ('DOMWindow', 'setInterval'),
73 ('DOMWindow', 'setTimeout'), 69 ('DOMWindow', 'setTimeout'),
74 ('WorkerContext', 'setInterval'), 70 ('WorkerContext', 'setInterval'),
75 ('WorkerContext', 'setTimeout'), 71 ('WorkerContext', 'setTimeout'),
76 ('CanvasRenderingContext2D', 'setFillStyle'), 72 ('CanvasRenderingContext2D', 'setFillStyle'),
77 ('CanvasRenderingContext2D', 'setStrokeStyle'), 73 ('CanvasRenderingContext2D', 'setStrokeStyle'),
78 ('CanvasRenderingContext2D', 'setFillStyle'), 74 ('CanvasRenderingContext2D', 'setFillStyle'),
79 ]) 75 ])
80 76
81 # 77 #
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 self._batched_operation_names.append(info.name) 1738 self._batched_operation_names.append(info.name)
1743 1739
1744 def AddSecondaryGetter(self, interface, attr): 1740 def AddSecondaryGetter(self, interface, attr):
1745 self.AddGetter(attr) 1741 self.AddGetter(attr)
1746 1742
1747 def AddSecondarySetter(self, interface, attr): 1743 def AddSecondarySetter(self, interface, attr):
1748 self.AddSetter(attr) 1744 self.AddSetter(attr)
1749 1745
1750 def AddSecondaryOperation(self, interface, info): 1746 def AddSecondaryOperation(self, interface, info):
1751 self.AddOperation(info) 1747 self.AddOperation(info)
OLDNEW
« no previous file with comments | « client/dom/idl/dart/dart.idl ('k') | client/dom/scripts/template_wrapping_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698