OLD | NEW |
---|---|
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 'arguments': [argument_context(interface, method, argument, index) | 130 'arguments': [argument_context(interface, method, argument, index) |
131 for index, argument in enumerate(arguments)], | 131 for index, argument in enumerate(arguments)], |
132 'argument_declarations_for_private_script': | 132 'argument_declarations_for_private_script': |
133 argument_declarations_for_private_script(interface, method), | 133 argument_declarations_for_private_script(interface, method), |
134 'arguments_need_try_catch': arguments_need_try_catch, | 134 'arguments_need_try_catch': arguments_need_try_catch, |
135 'conditional_string': v8_utilities.conditional_string(method), | 135 'conditional_string': v8_utilities.conditional_string(method), |
136 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) | 136 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) |
137 if idl_type.is_explicit_nullable else idl_type.cpp_type), | 137 if idl_type.is_explicit_nullable else idl_type.cpp_type), |
138 'cpp_value': this_cpp_value, | 138 'cpp_value': this_cpp_value, |
139 'cpp_type_initializer': idl_type.cpp_type_initializer, | 139 'cpp_type_initializer': idl_type.cpp_type_initializer, |
140 'custom_exposed_rules': v8_utilities.exposed(method, interface), # [Exp osed] | |
haraken
2014/07/30 16:32:03
custom_exposed_rules => exposed_rules
Peter Beverloo
2014/07/31 19:02:21
Acknowledged.
| |
140 'custom_registration_extended_attributes': | 141 'custom_registration_extended_attributes': |
141 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( | 142 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( |
142 extended_attributes.iterkeys()), | 143 extended_attributes.iterkeys()), |
143 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] | 144 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] |
144 'function_template': function_template(), | 145 'function_template': function_template(), |
145 'has_custom_registration': is_static or | 146 'has_custom_registration': is_static or |
146 v8_utilities.has_extended_attribute( | 147 v8_utilities.has_extended_attribute( |
147 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), | 148 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), |
148 'has_exception_state': | 149 'has_exception_state': |
149 is_raises_exception or | 150 is_raises_exception or |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 | 394 |
394 | 395 |
395 def argument_default_cpp_value(argument): | 396 def argument_default_cpp_value(argument): |
396 if not argument.default_value: | 397 if not argument.default_value: |
397 return None | 398 return None |
398 return argument.idl_type.literal_cpp_value(argument.default_value) | 399 return argument.idl_type.literal_cpp_value(argument.default_value) |
399 | 400 |
400 IdlType.union_arguments = property(lambda self: None) | 401 IdlType.union_arguments = property(lambda self: None) |
401 IdlUnionType.union_arguments = property(union_arguments) | 402 IdlUnionType.union_arguments = property(union_arguments) |
402 IdlArgument.default_cpp_value = property(argument_default_cpp_value) | 403 IdlArgument.default_cpp_value = property(argument_default_cpp_value) |
OLD | NEW |