| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ['DoNotCheckSecurity', 'DoNotCheckSignature', 'NotEnumerable', | 90 ['DoNotCheckSecurity', 'DoNotCheckSignature', 'NotEnumerable', |
| 91 'ReadOnly', 'RuntimeEnabled', 'Unforgeable'])), | 91 'ReadOnly', 'RuntimeEnabled', 'Unforgeable'])), |
| 92 'function_template': function_template(), | 92 'function_template': function_template(), |
| 93 'idl_type': idl_type, | 93 'idl_type': idl_type, |
| 94 'has_exception_state': | 94 'has_exception_state': |
| 95 is_raises_exception or | 95 is_raises_exception or |
| 96 is_check_security_for_frame or | 96 is_check_security_for_frame or |
| 97 any(argument for argument in arguments | 97 any(argument for argument in arguments |
| 98 if argument.idl_type == 'SerializedScriptValue' or | 98 if argument.idl_type == 'SerializedScriptValue' or |
| 99 v8_types.is_integer_type(argument.idl_type)) or | 99 v8_types.is_integer_type(argument.idl_type)) or |
| 100 name in ['addEventListener', 'removeEventListener'], | 100 name in ['addEventListener', 'removeEventListener', 'dispatchEvent']
, |
| 101 'is_call_with_execution_context': has_extended_attribute_value(method, '
CallWith', 'ExecutionContext'), | 101 'is_call_with_execution_context': has_extended_attribute_value(method, '
CallWith', 'ExecutionContext'), |
| 102 'is_call_with_script_arguments': is_call_with_script_arguments, | 102 'is_call_with_script_arguments': is_call_with_script_arguments, |
| 103 'is_call_with_script_state': is_call_with_script_state, | 103 'is_call_with_script_state': is_call_with_script_state, |
| 104 'is_check_security_for_frame': is_check_security_for_frame, | 104 'is_check_security_for_frame': is_check_security_for_frame, |
| 105 'is_check_security_for_node': is_check_security_for_node, | 105 'is_check_security_for_node': is_check_security_for_node, |
| 106 'is_custom': 'Custom' in extended_attributes, | 106 'is_custom': 'Custom' in extended_attributes, |
| 107 'is_custom_element_callbacks': is_custom_element_callbacks, | 107 'is_custom_element_callbacks': is_custom_element_callbacks, |
| 108 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, | 108 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, |
| 109 'is_do_not_check_signature': 'DoNotCheckSignature' in extended_attribute
s, | 109 'is_do_not_check_signature': 'DoNotCheckSignature' in extended_attribute
s, |
| 110 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes, | 110 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 return property_attributes_list | 250 return property_attributes_list |
| 251 | 251 |
| 252 | 252 |
| 253 def union_arguments(idl_type): | 253 def union_arguments(idl_type): |
| 254 """Return list of ['result0Enabled', 'result0', 'result1Enabled', ...] for u
nion types, for use in setting return value""" | 254 """Return list of ['result0Enabled', 'result0', 'result1Enabled', ...] for u
nion types, for use in setting return value""" |
| 255 if not v8_types.is_union_type(idl_type): | 255 if not v8_types.is_union_type(idl_type): |
| 256 return None | 256 return None |
| 257 return [arg | 257 return [arg |
| 258 for i in range(len(idl_type.union_member_types)) | 258 for i in range(len(idl_type.union_member_types)) |
| 259 for arg in ['result%sEnabled' % i, 'result%s' % i]] | 259 for arg in ['result%sEnabled' % i, 'result%s' % i]] |
| OLD | NEW |