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

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

Issue 1413723004: Revert of Make ImageBitmap Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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')
119 118
120 if 'LenientThis' in extended_attributes: 119 if 'LenientThis' in extended_attributes:
121 raise Exception('[LenientThis] is not supported for operations.') 120 raise Exception('[LenientThis] is not supported for operations.')
122 121
123 return { 122 return {
124 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging] 123 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging]
125 'arguments': [argument_context(interface, method, argument, index, is_vi sible=is_visible) 124 'arguments': [argument_context(interface, method, argument, index, is_vi sible=is_visible)
126 for index, argument in enumerate(arguments)], 125 for index, argument in enumerate(arguments)],
127 'argument_declarations_for_private_script': 126 'argument_declarations_for_private_script':
128 argument_declarations_for_private_script(interface, method), 127 argument_declarations_for_private_script(interface, method),
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 return method.idl_type and method.idl_type.name == 'Promise' 462 return method.idl_type and method.idl_type.name == 'Promise'
464 463
465 IdlOperation.returns_promise = property(method_returns_promise) 464 IdlOperation.returns_promise = property(method_returns_promise)
466 465
467 466
468 def argument_conversion_needs_exception_state(method, argument): 467 def argument_conversion_needs_exception_state(method, argument):
469 idl_type = argument.idl_type 468 idl_type = argument.idl_type
470 return (idl_type.v8_conversion_needs_exception_state or 469 return (idl_type.v8_conversion_needs_exception_state or
471 argument.is_variadic or 470 argument.is_variadic or
472 (method.returns_promise and idl_type.is_string_type)) 471 (method.returns_promise and idl_type.is_string_type))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698