| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_registration_extended_attributes': | 140 'custom_registration_extended_attributes': |
| 141 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( | 141 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( |
| 142 extended_attributes.iterkeys()), | 142 extended_attributes.iterkeys()), |
| 143 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] | 143 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] |
| 144 'exposed_test': v8_utilities.exposed(method, interface), # [Exposed] | |
| 145 'function_template': function_template(), | 144 'function_template': function_template(), |
| 146 'has_custom_registration': is_static or | 145 'has_custom_registration': is_static or |
| 147 v8_utilities.has_extended_attribute( | 146 v8_utilities.has_extended_attribute( |
| 148 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), | 147 method, CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES), |
| 149 'has_exception_state': | 148 'has_exception_state': |
| 150 is_raises_exception or | 149 is_raises_exception or |
| 151 is_check_security_for_frame or | 150 is_check_security_for_frame or |
| 152 interface.name == 'EventTarget' or # FIXME: merge with is_check_sec
urity_for_frame http://crbug.com/383699 | 151 interface.name == 'EventTarget' or # FIXME: merge with is_check_sec
urity_for_frame http://crbug.com/383699 |
| 153 any(argument for argument in arguments | 152 any(argument for argument in arguments |
| 154 if argument.idl_type.name == 'SerializedScriptValue' or | 153 if argument.idl_type.name == 'SerializedScriptValue' or |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 393 |
| 395 | 394 |
| 396 def argument_default_cpp_value(argument): | 395 def argument_default_cpp_value(argument): |
| 397 if not argument.default_value: | 396 if not argument.default_value: |
| 398 return None | 397 return None |
| 399 return argument.idl_type.literal_cpp_value(argument.default_value) | 398 return argument.idl_type.literal_cpp_value(argument.default_value) |
| 400 | 399 |
| 401 IdlType.union_arguments = property(lambda self: None) | 400 IdlType.union_arguments = property(lambda self: None) |
| 402 IdlUnionType.union_arguments = property(union_arguments) | 401 IdlUnionType.union_arguments = property(union_arguments) |
| 403 IdlArgument.default_cpp_value = property(argument_default_cpp_value) | 402 IdlArgument.default_cpp_value = property(argument_default_cpp_value) |
| OLD | NEW |