| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 not is_do_not_check_security) | 108 not is_do_not_check_security) |
| 109 | 109 |
| 110 is_raises_exception = 'RaisesException' in extended_attributes | 110 is_raises_exception = 'RaisesException' in extended_attributes |
| 111 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca
llPrologue') | 111 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca
llPrologue') |
| 112 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') | 112 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') |
| 113 is_post_message = 'PostMessage' in extended_attributes | 113 is_post_message = 'PostMessage' in extended_attributes |
| 114 if is_post_message: | 114 if is_post_message: |
| 115 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') | 115 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') |
| 116 includes.add('core/dom/DOMArrayBuffer.h') | 116 includes.add('core/dom/DOMArrayBuffer.h') |
| 117 includes.add('core/dom/MessagePort.h') | 117 includes.add('core/dom/MessagePort.h') |
| 118 includes.add('core/frame/ImageBitmap.h') |
| 118 | 119 |
| 119 if 'LenientThis' in extended_attributes: | 120 if 'LenientThis' in extended_attributes: |
| 120 raise Exception('[LenientThis] is not supported for operations.') | 121 raise Exception('[LenientThis] is not supported for operations.') |
| 121 | 122 |
| 122 return { | 123 return { |
| 123 '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] |
| 124 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) | 125 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) |
| 125 for index, argument in enumerate(arguments)], | 126 for index, argument in enumerate(arguments)], |
| 126 'argument_declarations_for_private_script': | 127 'argument_declarations_for_private_script': |
| 127 argument_declarations_for_private_script(interface, method), | 128 argument_declarations_for_private_script(interface, method), |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 return method.idl_type and method.idl_type.name == 'Promise' | 463 return method.idl_type and method.idl_type.name == 'Promise' |
| 463 | 464 |
| 464 IdlOperation.returns_promise = property(method_returns_promise) | 465 IdlOperation.returns_promise = property(method_returns_promise) |
| 465 | 466 |
| 466 | 467 |
| 467 def argument_conversion_needs_exception_state(method, argument): | 468 def argument_conversion_needs_exception_state(method, argument): |
| 468 idl_type = argument.idl_type | 469 idl_type = argument.idl_type |
| 469 return (idl_type.v8_conversion_needs_exception_state or | 470 return (idl_type.v8_conversion_needs_exception_state or |
| 470 argument.is_variadic or | 471 argument.is_variadic or |
| 471 (method.returns_promise and idl_type.is_string_type)) | 472 (method.returns_promise and idl_type.is_string_type)) |
| OLD | NEW |