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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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('core/dom/DOMArrayBuffer.h') | 113 includes.add('core/dom/DOMArrayBuffer.h') |
114 includes.add('core/dom/MessagePort.h') | 114 includes.add('core/dom/MessagePort.h') |
115 includes.add('core/frame/ImageBitmap.h') | 115 includes.add('core/frame/ImageBitmap.h') |
| 116 includes.add('modules/offscreencanvas/OffscreenCanvas.h') |
116 | 117 |
117 if 'LenientThis' in extended_attributes: | 118 if 'LenientThis' in extended_attributes: |
118 raise Exception('[LenientThis] is not supported for operations.') | 119 raise Exception('[LenientThis] is not supported for operations.') |
119 | 120 |
120 argument_contexts = [ | 121 argument_contexts = [ |
121 argument_context(interface, method, argument, index, is_visible=is_visib
le) | 122 argument_context(interface, method, argument, index, is_visible=is_visib
le) |
122 for index, argument in enumerate(arguments)] | 123 for index, argument in enumerate(arguments)] |
123 | 124 |
124 return { | 125 return { |
125 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] | 126 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 return method.idl_type and method.idl_type.name == 'Promise' | 460 return method.idl_type and method.idl_type.name == 'Promise' |
460 | 461 |
461 IdlOperation.returns_promise = property(method_returns_promise) | 462 IdlOperation.returns_promise = property(method_returns_promise) |
462 | 463 |
463 | 464 |
464 def argument_conversion_needs_exception_state(method, argument): | 465 def argument_conversion_needs_exception_state(method, argument): |
465 idl_type = argument.idl_type | 466 idl_type = argument.idl_type |
466 return (idl_type.v8_conversion_needs_exception_state or | 467 return (idl_type.v8_conversion_needs_exception_state or |
467 argument.is_variadic or | 468 argument.is_variadic or |
468 (method.returns_promise and idl_type.is_string_type)) | 469 (method.returns_promise and idl_type.is_string_type)) |
OLD | NEW |