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

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

Issue 556893002: Move IdlType.may_raise_exception_on_conversion to v8_types.py (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/bindings/scripts/v8_attributes.py ('k') | Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 'arguments_need_try_catch': arguments_need_try_catch, 904 'arguments_need_try_catch': arguments_need_try_catch,
905 'cpp_type': cpp_template_type( 905 'cpp_type': cpp_template_type(
906 cpp_ptr_type('RefPtr', 'RawPtr', gc_type(interface)), 906 cpp_ptr_type('RefPtr', 'RawPtr', gc_type(interface)),
907 cpp_name(interface)), 907 cpp_name(interface)),
908 'cpp_value': v8_methods.cpp_value( 908 'cpp_value': v8_methods.cpp_value(
909 interface, constructor, len(constructor.arguments)), 909 interface, constructor, len(constructor.arguments)),
910 'has_exception_state': 910 'has_exception_state':
911 is_constructor_raises_exception or 911 is_constructor_raises_exception or
912 any(argument for argument in constructor.arguments 912 any(argument for argument in constructor.arguments
913 if argument.idl_type.name == 'SerializedScriptValue' or 913 if argument.idl_type.name == 'SerializedScriptValue' or
914 argument.idl_type.may_raise_exception_on_conversion), 914 argument.idl_type.v8_conversion_needs_exception_state),
915 'is_call_with_document': 915 'is_call_with_document':
916 # [ConstructorCallWith=Document] 916 # [ConstructorCallWith=Document]
917 has_extended_attribute_value(interface, 917 has_extended_attribute_value(interface,
918 'ConstructorCallWith', 'Document'), 918 'ConstructorCallWith', 'Document'),
919 'is_call_with_execution_context': 919 'is_call_with_execution_context':
920 # [ConstructorCallWith=ExecutionContext] 920 # [ConstructorCallWith=ExecutionContext]
921 has_extended_attribute_value(interface, 921 has_extended_attribute_value(interface,
922 'ConstructorCallWith', 'ExecutionContext'), 922 'ConstructorCallWith', 'ExecutionContext'),
923 'is_constructor': True, 923 'is_constructor': True,
924 'is_named_constructor': False, 924 'is_named_constructor': False,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 deleter = next( 1146 deleter = next(
1147 method 1147 method
1148 for method in interface.operations 1148 for method in interface.operations
1149 if ('deleter' in method.specials and 1149 if ('deleter' in method.specials and
1150 len(method.arguments) == 1 and 1150 len(method.arguments) == 1 and
1151 str(method.arguments[0].idl_type) == 'DOMString')) 1151 str(method.arguments[0].idl_type) == 'DOMString'))
1152 except StopIteration: 1152 except StopIteration:
1153 return None 1153 return None
1154 1154
1155 return property_deleter(deleter) 1155 return property_deleter(deleter)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_attributes.py ('k') | Source/bindings/scripts/v8_methods.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698