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

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

Issue 1046423002: [bindings] Remove History.(push|replace)State custom bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 is_raises_exception = 'RaisesException' in extended_attributes 117 is_raises_exception = 'RaisesException' in extended_attributes
118 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca llEpilogue') 118 is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'Ca llEpilogue')
119 119
120 return { 120 return {
121 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging] 121 'activity_logging_world_list': v8_utilities.activity_logging_world_list( method), # [ActivityLogging]
122 'arguments': [argument_context(interface, method, argument, index) 122 'arguments': [argument_context(interface, method, argument, index)
123 for index, argument in enumerate(arguments)], 123 for index, argument in enumerate(arguments)],
124 'argument_declarations_for_private_script': 124 'argument_declarations_for_private_script':
125 argument_declarations_for_private_script(interface, method), 125 argument_declarations_for_private_script(interface, method),
126 'clear_cached_attributes': extended_attributes.get('ClearCachedAttribute s'),
126 'conditional_string': v8_utilities.conditional_string(method), 127 'conditional_string': v8_utilities.conditional_string(method),
127 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type) 128 'cpp_type': (v8_types.cpp_template_type('Nullable', idl_type.cpp_type)
128 if idl_type.is_explicit_nullable else idl_type.cpp_type), 129 if idl_type.is_explicit_nullable else idl_type.cpp_type),
129 'cpp_value': this_cpp_value, 130 'cpp_value': this_cpp_value,
130 'cpp_type_initializer': idl_type.cpp_type_initializer, 131 'cpp_type_initializer': idl_type.cpp_type_initializer,
131 'custom_registration_extended_attributes': 132 'custom_registration_extended_attributes':
132 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection( 133 CUSTOM_REGISTRATION_EXTENDED_ATTRIBUTES.intersection(
133 extended_attributes.iterkeys()), 134 extended_attributes.iterkeys()),
134 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs] 135 'deprecate_as': v8_utilities.deprecate_as(method), # [DeprecateAs]
135 'exposed_test': v8_utilities.exposed(method, interface), # [Exposed] 136 'exposed_test': v8_utilities.exposed(method, interface), # [Exposed]
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 453
453 IdlOperation.returns_promise = property(method_returns_promise) 454 IdlOperation.returns_promise = property(method_returns_promise)
454 455
455 456
456 def argument_conversion_needs_exception_state(method, argument): 457 def argument_conversion_needs_exception_state(method, argument):
457 idl_type = argument.idl_type 458 idl_type = argument.idl_type
458 return (idl_type.v8_conversion_needs_exception_state or 459 return (idl_type.v8_conversion_needs_exception_state or
459 argument.is_variadic or 460 argument.is_variadic or
460 (method.returns_promise and (idl_type.is_string_type or 461 (method.returns_promise and (idl_type.is_string_type or
461 idl_type.is_enum))) 462 idl_type.is_enum)))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698