Chromium Code Reviews| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 'ReadOnly', 'RuntimeEnabled', 'Unforgeable'])), | 113 'ReadOnly', 'RuntimeEnabled', 'Unforgeable'])), |
| 114 'function_template': function_template(), | 114 'function_template': function_template(), |
| 115 'idl_type': idl_type.base_type, | 115 'idl_type': idl_type.base_type, |
| 116 'has_event_listener_argument': has_event_listener_argument, | 116 'has_event_listener_argument': has_event_listener_argument, |
| 117 'has_exception_state': | 117 'has_exception_state': |
| 118 has_event_listener_argument or | 118 has_event_listener_argument or |
| 119 is_raises_exception or | 119 is_raises_exception or |
| 120 is_check_security_for_frame or | 120 is_check_security_for_frame or |
| 121 any(argument for argument in arguments | 121 any(argument for argument in arguments |
| 122 if argument.idl_type.name == 'SerializedScriptValue' or | 122 if argument.idl_type.name == 'SerializedScriptValue' or |
| 123 argument.idl_type.is_integer_type), | 123 argument.idl_type.is_integer_type or |
| 124 argument.idl_type.base_type == 'ByteString'), | |
|
Nils Barth (inactive)
2014/06/02 03:20:16
Ditto about .name, in which case this can instead
jsbell
2014/06/03 23:22:36
Done.
| |
| 124 'is_call_with_execution_context': has_extended_attribute_value(method, ' CallWith', 'ExecutionContext'), | 125 'is_call_with_execution_context': has_extended_attribute_value(method, ' CallWith', 'ExecutionContext'), |
| 125 'is_call_with_script_arguments': is_call_with_script_arguments, | 126 'is_call_with_script_arguments': is_call_with_script_arguments, |
| 126 'is_call_with_script_state': is_call_with_script_state, | 127 'is_call_with_script_state': is_call_with_script_state, |
| 127 'is_check_security_for_frame': is_check_security_for_frame, | 128 'is_check_security_for_frame': is_check_security_for_frame, |
| 128 'is_check_security_for_node': is_check_security_for_node, | 129 'is_check_security_for_node': is_check_security_for_node, |
| 129 'is_custom': 'Custom' in extended_attributes, | 130 'is_custom': 'Custom' in extended_attributes, |
| 130 'is_custom_element_callbacks': is_custom_element_callbacks, | 131 'is_custom_element_callbacks': is_custom_element_callbacks, |
| 131 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, | 132 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, |
| 132 'is_do_not_check_signature': 'DoNotCheckSignature' in extended_attribute s, | 133 'is_do_not_check_signature': 'DoNotCheckSignature' in extended_attribute s, |
| 133 'is_partial_interface_member': | 134 'is_partial_interface_member': |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 314 | 315 |
| 315 | 316 |
| 316 def union_arguments(idl_type): | 317 def union_arguments(idl_type): |
| 317 """Return list of ['result0Enabled', 'result0', 'result1Enabled', ...] for u nion types, for use in setting return value""" | 318 """Return list of ['result0Enabled', 'result0', 'result1Enabled', ...] for u nion types, for use in setting return value""" |
| 318 return [arg | 319 return [arg |
| 319 for i in range(len(idl_type.member_types)) | 320 for i in range(len(idl_type.member_types)) |
| 320 for arg in ['result%sEnabled' % i, 'result%s' % i]] | 321 for arg in ['result%sEnabled' % i, 'result%s' % i]] |
| 321 | 322 |
| 322 IdlType.union_arguments = property(lambda self: None) | 323 IdlType.union_arguments = property(lambda self: None) |
| 323 IdlUnionType.union_arguments = property(union_arguments) | 324 IdlUnionType.union_arguments = property(union_arguments) |
| OLD | NEW |