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

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

Issue 140663012: IDL compiler: Window-specific code + Window-only features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 10 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 | Annotate | Revision Log
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 v8_types.is_integer_type(argument.idl_type)) or 99 v8_types.is_integer_type(argument.idl_type)) or
100 name in ['addEventListener', 'removeEventListener'], 100 name in ['addEventListener', 'removeEventListener'],
101 'is_call_with_execution_context': has_extended_attribute_value(method, ' CallWith', 'ExecutionContext'), 101 'is_call_with_execution_context': has_extended_attribute_value(method, ' CallWith', 'ExecutionContext'),
102 'is_call_with_script_arguments': is_call_with_script_arguments, 102 'is_call_with_script_arguments': is_call_with_script_arguments,
103 'is_call_with_script_state': is_call_with_script_state, 103 'is_call_with_script_state': is_call_with_script_state,
104 'is_check_security_for_frame': is_check_security_for_frame, 104 'is_check_security_for_frame': is_check_security_for_frame,
105 'is_check_security_for_node': is_check_security_for_node, 105 'is_check_security_for_node': is_check_security_for_node,
106 'is_custom': 'Custom' in extended_attributes, 106 'is_custom': 'Custom' in extended_attributes,
107 'is_custom_element_callbacks': is_custom_element_callbacks, 107 'is_custom_element_callbacks': is_custom_element_callbacks,
108 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, 108 'is_do_not_check_security': 'DoNotCheckSecurity' in extended_attributes,
109 'is_do_not_check_signature': 'DoNotCheckSignature' in extended_attribute s,
109 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes, 110 'is_per_world_bindings': 'PerWorldBindings' in extended_attributes,
110 'is_raises_exception': is_raises_exception, 111 'is_raises_exception': is_raises_exception,
111 'is_read_only': 'ReadOnly' in extended_attributes, 112 'is_read_only': 'ReadOnly' in extended_attributes,
112 'is_static': is_static, 113 'is_static': is_static,
113 'is_strict_type_checking': 114 'is_strict_type_checking':
114 'StrictTypeChecking' in extended_attributes or 115 'StrictTypeChecking' in extended_attributes or
115 'StrictTypeChecking' in interface.extended_attributes, 116 'StrictTypeChecking' in interface.extended_attributes,
116 'is_variadic': arguments and arguments[-1].is_variadic, 117 'is_variadic': arguments and arguments[-1].is_variadic,
117 'measure_as': v8_utilities.measure_as(method), # [MeasureAs] 118 'measure_as': v8_utilities.measure_as(method), # [MeasureAs]
118 'name': name, 119 'name': name,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return 'V8TRYCATCH_VOID(Vector<{cpp_type}>, {name}, toNativeArguments<{c pp_type}>(info, {index}))'.format( 222 return 'V8TRYCATCH_VOID(Vector<{cpp_type}>, {name}, toNativeArguments<{c pp_type}>(info, {index}))'.format(
222 cpp_type=v8_types.cpp_type(idl_type), name=name, index=index) 223 cpp_type=v8_types.cpp_type(idl_type), name=name, index=index)
223 # [Default=NullString] 224 # [Default=NullString]
224 if (argument.is_optional and idl_type == 'DOMString' and 225 if (argument.is_optional and idl_type == 'DOMString' and
225 extended_attributes.get('Default') == 'NullString'): 226 extended_attributes.get('Default') == 'NullString'):
226 v8_value = 'argumentOrNull(info, %s)' % index 227 v8_value = 'argumentOrNull(info, %s)' % index
227 else: 228 else:
228 v8_value = 'info[%s]' % index 229 v8_value = 'info[%s]' % index
229 return v8_types.v8_value_to_local_cpp_value( 230 return v8_types.v8_value_to_local_cpp_value(
230 idl_type, argument.extended_attributes, v8_value, name, index=index) 231 idl_type, argument.extended_attributes, v8_value, name, index=index)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_attributes.py ('k') | Source/bindings/scripts/unstable/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698