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

Side by Side Diff: bindings/dart/scripts/dart_utilities.py

Issue 558803003: Roll IDL Dartium 37 (r181675) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 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 | « bindings/dart/scripts/dart_methods.py ('k') | core/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 tag = "constructorCallback" 147 tag = "constructorCallback"
148 blink_entry = tag 148 blink_entry = tag
149 if index is not None: 149 if index is not None:
150 blink_entry = "_create_%s%s" % (index, blink_entry) 150 blink_entry = "_create_%s%s" % (index, blink_entry)
151 elif kind == 'Method': 151 elif kind == 'Method':
152 tag = "%s_Callback" % name 152 tag = "%s_Callback" % name
153 if index is None: 153 if index is None:
154 blink_entry = tag 154 blink_entry = tag
155 else: 155 else:
156 blink_entry = "_%s_%d_Callback" % (name, index) 156 blink_entry = "_%s_%d_Callback" % (name, index)
157 native_entry = "%s_%s" % (interface_name, tag) 157 components = [interface_name, tag]
158 if types is not None: 158 if types is not None:
159 count = len(types) 159 components.extend(types)
160 types = "_".join(types) 160 native_entry = "_".join(components)
161 native_entry = "%s_RESOLVER_STRING_%d_%s" % (native_entry, count, types)
162 if not is_static and kind != 'Constructor': 161 if not is_static and kind != 'Constructor':
163 args.insert(0, "mthis") 162 args.insert(0, "mthis")
164 return {'blink_entry': "$" + blink_entry, 163 return {'blink_entry': "$" + blink_entry,
165 'argument_names': args, 164 'argument_names': args,
166 'resolver_string': native_entry} 165 'resolver_string': native_entry}
167 166
168 ################################################################################ 167 ################################################################################
169 # This is the monkey patched methods most delegate to v8_utilities but some are 168 # This is the monkey patched methods most delegate to v8_utilities but some are
170 # overridden in dart_utilities. 169 # overridden in dart_utilities.
171 ################################################################################ 170 ################################################################################
(...skipping 17 matching lines...) Expand all
189 DartUtilities.generate_native_entry = _generate_native_entry 188 DartUtilities.generate_native_entry = _generate_native_entry
190 DartUtilities.has_extended_attribute = v8_utilities.has_extended_attribute 189 DartUtilities.has_extended_attribute = v8_utilities.has_extended_attribute
191 DartUtilities.has_extended_attribute_value = v8_utilities.has_extended_attribute _value 190 DartUtilities.has_extended_attribute_value = v8_utilities.has_extended_attribute _value
192 DartUtilities.measure_as = _measure_as 191 DartUtilities.measure_as = _measure_as
193 DartUtilities.per_context_enabled_function_name = v8_utilities.per_context_enabl ed_function_name 192 DartUtilities.per_context_enabled_function_name = v8_utilities.per_context_enabl ed_function_name
194 DartUtilities.runtime_enabled_function_name = v8_utilities.runtime_enabled_funct ion_name 193 DartUtilities.runtime_enabled_function_name = v8_utilities.runtime_enabled_funct ion_name
195 DartUtilities.scoped_name = _scoped_name 194 DartUtilities.scoped_name = _scoped_name
196 DartUtilities.strip_suffix = v8_utilities.strip_suffix 195 DartUtilities.strip_suffix = v8_utilities.strip_suffix
197 DartUtilities.uncapitalize = v8_utilities.uncapitalize 196 DartUtilities.uncapitalize = v8_utilities.uncapitalize
198 DartUtilities.v8_class_name = v8_utilities.v8_class_name 197 DartUtilities.v8_class_name = v8_utilities.v8_class_name
OLDNEW
« no previous file with comments | « bindings/dart/scripts/dart_methods.py ('k') | core/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698