| 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 not is_do_not_check_security) | 113 not is_do_not_check_security) |
| 114 | 114 |
| 115 is_check_security_for_window = ( | 115 is_check_security_for_window = ( |
| 116 has_extended_attribute_value(interface, 'CheckSecurity', 'Window') and | 116 has_extended_attribute_value(interface, 'CheckSecurity', 'Window') and |
| 117 not is_do_not_check_security) | 117 not is_do_not_check_security) |
| 118 | 118 |
| 119 is_raises_exception = 'RaisesException' in extended_attributes | 119 is_raises_exception = 'RaisesException' in extended_attributes |
| 120 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') | 120 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca
llEpilogue') |
| 121 is_post_message = 'PostMessage' in extended_attributes | 121 is_post_message = 'PostMessage' in extended_attributes |
| 122 if is_post_message: | 122 if is_post_message: |
| 123 includes.add('bindings/core/v8/PostMessage.h') | 123 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') |
| 124 includes.add('core/dom/DOMArrayBuffer.h') |
| 125 includes.add('core/dom/MessagePort.h') |
| 126 |
| 124 | 127 |
| 125 return { | 128 return { |
| 126 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] | 129 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] |
| 127 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) | 130 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) |
| 128 for index, argument in enumerate(arguments)], | 131 for index, argument in enumerate(arguments)], |
| 129 'argument_declarations_for_private_script': | 132 'argument_declarations_for_private_script': |
| 130 argument_declarations_for_private_script(interface, method), | 133 argument_declarations_for_private_script(interface, method), |
| 131 'conditional_string': v8_utilities.conditional_string(method), | 134 'conditional_string': v8_utilities.conditional_string(method), |
| 132 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) | 135 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) |
| 133 if idl_type.is_explicit_nullable else idl_type.cpp_type), | 136 if idl_type.is_explicit_nullable else idl_type.cpp_type), |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 return method.idl_type and method.idl_type.name == 'Promise' | 461 return method.idl_type and method.idl_type.name == 'Promise' |
| 459 | 462 |
| 460 IdlOperation.returns_promise = property(method_returns_promise) | 463 IdlOperation.returns_promise = property(method_returns_promise) |
| 461 | 464 |
| 462 | 465 |
| 463 def argument_conversion_needs_exception_state(method, argument): | 466 def argument_conversion_needs_exception_state(method, argument): |
| 464 idl_type = argument.idl_type | 467 idl_type = argument.idl_type |
| 465 return (idl_type.v8_conversion_needs_exception_state or | 468 return (idl_type.v8_conversion_needs_exception_state or |
| 466 argument.is_variadic or | 469 argument.is_variadic or |
| 467 (method.returns_promise and idl_type.is_string_type)) | 470 (method.returns_promise and idl_type.is_string_type)) |
| OLD | NEW |