| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 is_check_security_for_receiver = ( | 95 is_check_security_for_receiver = ( |
| 96 has_extended_attribute_value(interface, 'CheckSecurity', 'Receiver') and | 96 has_extended_attribute_value(interface, 'CheckSecurity', 'Receiver') and |
| 97 not is_do_not_check_security) | 97 not is_do_not_check_security) |
| 98 is_check_security_for_return_value = ( | 98 is_check_security_for_return_value = ( |
| 99 has_extended_attribute_value(method, 'CheckSecurity', 'ReturnValue')) | 99 has_extended_attribute_value(method, 'CheckSecurity', 'ReturnValue')) |
| 100 if is_check_security_for_receiver or is_check_security_for_return_value: | 100 if is_check_security_for_receiver or is_check_security_for_return_value: |
| 101 includes.add('bindings/core/v8/BindingSecurity.h') | 101 includes.add('bindings/core/v8/BindingSecurity.h') |
| 102 | 102 |
| 103 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute
s | 103 is_custom_element_callbacks = 'CustomElementCallbacks' in extended_attribute
s |
| 104 if is_custom_element_callbacks: | 104 if is_custom_element_callbacks: |
| 105 includes.add('core/dom/custom/CustomElementProcessingStack.h') | 105 includes.add('core/dom/custom/V0CustomElementProcessingStack.h') |
| 106 | 106 |
| 107 is_raises_exception = 'RaisesException' in extended_attributes | 107 is_raises_exception = 'RaisesException' in extended_attributes |
| 108 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca
llPrologue') | 108 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca
llPrologue') |
| 109 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') | 109 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') |
| 110 is_post_message = 'PostMessage' in extended_attributes | 110 is_post_message = 'PostMessage' in extended_attributes |
| 111 if is_post_message: | 111 if is_post_message: |
| 112 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') | 112 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') |
| 113 includes.add('bindings/core/v8/Transferables.h') | 113 includes.add('bindings/core/v8/Transferables.h') |
| 114 | 114 |
| 115 if 'LenientThis' in extended_attributes: | 115 if 'LenientThis' in extended_attributes: |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 return method.idl_type and method.idl_type.name == 'Promise' | 457 return method.idl_type and method.idl_type.name == 'Promise' |
| 458 | 458 |
| 459 IdlOperation.returns_promise = property(method_returns_promise) | 459 IdlOperation.returns_promise = property(method_returns_promise) |
| 460 | 460 |
| 461 | 461 |
| 462 def argument_conversion_needs_exception_state(method, argument): | 462 def argument_conversion_needs_exception_state(method, argument): |
| 463 idl_type = argument.idl_type | 463 idl_type = argument.idl_type |
| 464 return (idl_type.v8_conversion_needs_exception_state or | 464 return (idl_type.v8_conversion_needs_exception_state or |
| 465 argument.is_variadic or | 465 argument.is_variadic or |
| 466 (method.returns_promise and idl_type.is_string_type)) | 466 (method.returns_promise and idl_type.is_string_type)) |
| OLD | NEW |