Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/v8_methods.py

Issue 2541683002: Make ImageBitmap transfers work in cases that require serialization (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 includes.add('core/dom/custom/V0CustomElementProcessingStack.h') 166 includes.add('core/dom/custom/V0CustomElementProcessingStack.h')
167 167
168 is_raises_exception = 'RaisesException' in extended_attributes 168 is_raises_exception = 'RaisesException' in extended_attributes
169 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca llPrologue') 169 is_custom_call_prologue = has_extended_attribute_value(method, 'Custom', 'Ca llPrologue')
170 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca llEpilogue') 170 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca llEpilogue')
171 is_post_message = 'PostMessage' in extended_attributes 171 is_post_message = 'PostMessage' in extended_attributes
172 if is_post_message: 172 if is_post_message:
173 includes.add('bindings/core/v8/SerializedScriptValueFactory.h') 173 includes.add('bindings/core/v8/SerializedScriptValueFactory.h')
174 includes.add('bindings/core/v8/Transferables.h') 174 includes.add('bindings/core/v8/Transferables.h')
175 includes.add('core/dom/DOMArrayBufferBase.h') 175 includes.add('core/dom/DOMArrayBufferBase.h')
176 includes.add('core/frame/ImageBitmap.h')
176 177
177 if 'LenientThis' in extended_attributes: 178 if 'LenientThis' in extended_attributes:
178 raise Exception('[LenientThis] is not supported for operations.') 179 raise Exception('[LenientThis] is not supported for operations.')
179 180
180 argument_contexts = [ 181 argument_contexts = [
181 argument_context(interface, method, argument, index, is_visible=is_visib le) 182 argument_context(interface, method, argument, index, is_visible=is_visib le)
182 for index, argument in enumerate(arguments)] 183 for index, argument in enumerate(arguments)]
183 184
184 return { 185 return {
185 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging] 186 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging]
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 return method.idl_type and method.idl_type.name == 'Promise' 520 return method.idl_type and method.idl_type.name == 'Promise'
520 521
521 IdlOperation.returns_promise = property(method_returns_promise) 522 IdlOperation.returns_promise = property(method_returns_promise)
522 523
523 524
524 def argument_conversion_needs_exception_state(method, argument): 525 def argument_conversion_needs_exception_state(method, argument):
525 idl_type = argument.idl_type 526 idl_type = argument.idl_type
526 return (idl_type.v8_conversion_needs_exception_state or 527 return (idl_type.v8_conversion_needs_exception_state or
527 argument.is_variadic or 528 argument.is_variadic or
528 (method.returns_promise and idl_type.is_string_type)) 529 (method.returns_promise and idl_type.is_string_type))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698