| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] | 124 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] |
| 125 'arguments': [argument_context(interface, method, argument, index) | 125 'arguments': [argument_context(interface, method, argument, index) |
| 126 for index, argument in enumerate(arguments)], | 126 for index, argument in enumerate(arguments)], |
| 127 'argument_declarations_for_private_script': | 127 'argument_declarations_for_private_script': |
| 128 argument_declarations_for_private_script(interface, method), | 128 argument_declarations_for_private_script(interface, method), |
| 129 'arguments_need_try_catch': arguments_need_try_catch, | 129 'arguments_need_try_catch': arguments_need_try_catch, |
| 130 'conditional_string': v8_utilities.conditional_string(method), | 130 'conditional_string': v8_utilities.conditional_string(method), |
| 131 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) | 131 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) |
| 132 if idl_type.is_explicit_nullable else idl_type.cpp_type), | 132 if idl_type.is_explicit_nullable else idl_type.cpp_type), |
| 133 'cpp_value': this_cpp_value, | 133 'cpp_value': this_cpp_value, |
| 134 'cpp_type_initializer': idl_type.cpp_type_initializer, |
| 134 'custom_registration_extended_attributes': | 135 'custom_registration_extended_attributes': |
| 135 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( | 136 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( |
| 136 extended_attributes.iterkeys()), | 137 extended_attributes.iterkeys()), |
| 137 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] | 138 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] |
| 138 'function_template': function_template(), | 139 'function_template': function_template(), |
| 139 'has_custom_registration': is_static or | 140 'has_custom_registration': is_static or |
| 140 v8_utilities.has_extended_attribute( | 141 v8_utilities.has_extended_attribute( |
| 141 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), | 142 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), |
| 142 'has_exception_state': | 143 'has_exception_state': |
| 143 is_raises_exception or | 144 is_raises_exception or |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 391 |
| 391 | 392 |
| 392 def argument_default_cpp_value(argument): | 393 def argument_default_cpp_value(argument): |
| 393 if not argument.default_value: | 394 if not argument.default_value: |
| 394 return None | 395 return None |
| 395 return argument.idl_type.literal_cpp_value(argument.default_value) | 396 return argument.idl_type.literal_cpp_value(argument.default_value) |
| 396 | 397 |
| 397 IdlType.union_arguments = property(lambda self: None) | 398 IdlType.union_arguments = property(lambda self: None) |
| 398 IdlUnionType.union_arguments = property(union_arguments) | 399 IdlUnionType.union_arguments = property(union_arguments) |
| 399 IdlArgument.default_cpp_value = property(argument_default_cpp_value) | 400 IdlArgument.default_cpp_value = property(argument_default_cpp_value) |
| OLD | NEW |