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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/SerializedScriptValueFactory.h') | 123 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') |
124 includes.add('core/dom/DOMArrayBuffer.h') | 124 includes.add('core/dom/DOMArrayBuffer.h') |
| 125 includes.add('core/dom/DOMSharedArrayBuffer.h') |
125 includes.add('core/dom/MessagePort.h') | 126 includes.add('core/dom/MessagePort.h') |
126 | 127 |
127 | 128 |
128 return { | 129 return { |
129 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] | 130 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] |
130 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) | 131 'arguments': [argument_context(interface, method, argument, index, is_vi
sible=is_visible) |
131 for index, argument in enumerate(arguments)], | 132 for index, argument in enumerate(arguments)], |
132 'argument_declarations_for_private_script': | 133 'argument_declarations_for_private_script': |
133 argument_declarations_for_private_script(interface, method), | 134 argument_declarations_for_private_script(interface, method), |
134 'conditional_string': v8_utilities.conditional_string(method), | 135 'conditional_string': v8_utilities.conditional_string(method), |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 return method.idl_type and method.idl_type.name == 'Promise' | 467 return method.idl_type and method.idl_type.name == 'Promise' |
467 | 468 |
468 IdlOperation.returns_promise = property(method_returns_promise) | 469 IdlOperation.returns_promise = property(method_returns_promise) |
469 | 470 |
470 | 471 |
471 def argument_conversion_needs_exception_state(method, argument): | 472 def argument_conversion_needs_exception_state(method, argument): |
472 idl_type = argument.idl_type | 473 idl_type = argument.idl_type |
473 return (idl_type.v8_conversion_needs_exception_state or | 474 return (idl_type.v8_conversion_needs_exception_state or |
474 argument.is_variadic or | 475 argument.is_variadic or |
475 (method.returns_promise and idl_type.is_string_type)) | 476 (method.returns_promise and idl_type.is_string_type)) |
OLD | NEW |