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

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

Issue 741783003: Bindings: Support [ConstructorCallWith=ScriptState] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # coding=utf-8 2 # coding=utf-8
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 if argument.idl_type.name == 'SerializedScriptValue' or 1027 if argument.idl_type.name == 'SerializedScriptValue' or
1028 argument.idl_type.v8_conversion_needs_exception_state), 1028 argument.idl_type.v8_conversion_needs_exception_state),
1029 'is_call_with_document': 1029 'is_call_with_document':
1030 # [ConstructorCallWith=Document] 1030 # [ConstructorCallWith=Document]
1031 has_extended_attribute_value(interface, 1031 has_extended_attribute_value(interface,
1032 'ConstructorCallWith', 'Document'), 1032 'ConstructorCallWith', 'Document'),
1033 'is_call_with_execution_context': 1033 'is_call_with_execution_context':
1034 # [ConstructorCallWith=ExecutionContext] 1034 # [ConstructorCallWith=ExecutionContext]
1035 has_extended_attribute_value(interface, 1035 has_extended_attribute_value(interface,
1036 'ConstructorCallWith', 'ExecutionContext'), 1036 'ConstructorCallWith', 'ExecutionContext'),
1037 'is_call_with_script_state':
1038 # [ConstructorCallWith=ScriptState]
1039 has_extended_attribute_value(
1040 interface, 'ConstructorCallWith', 'ScriptState'),
1037 'is_constructor': True, 1041 'is_constructor': True,
1038 'is_named_constructor': False, 1042 'is_named_constructor': False,
1039 'is_raises_exception': is_constructor_raises_exception, 1043 'is_raises_exception': is_constructor_raises_exception,
1040 'number_of_required_arguments': 1044 'number_of_required_arguments':
1041 number_of_required_arguments(constructor), 1045 number_of_required_arguments(constructor),
1042 } 1046 }
1043 1047
1044 1048
1045 # [NamedConstructor] 1049 # [NamedConstructor]
1046 def named_constructor_context(interface): 1050 def named_constructor_context(interface):
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 deleter = next( 1260 deleter = next(
1257 method 1261 method
1258 for method in interface.operations 1262 for method in interface.operations
1259 if ('deleter' in method.specials and 1263 if ('deleter' in method.specials and
1260 len(method.arguments) == 1 and 1264 len(method.arguments) == 1 and
1261 str(method.arguments[0].idl_type) == 'DOMString')) 1265 str(method.arguments[0].idl_type) == 'DOMString'))
1262 except StopIteration: 1266 except StopIteration:
1263 return None 1267 return None
1264 1268
1265 return property_deleter(deleter) 1269 return property_deleter(deleter)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698