| OLD | NEW |
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 if is_call_with_script_arguments: | 59 if is_call_with_script_arguments: |
| 60 includes.update(['bindings/v8/ScriptCallStackFactory.h', | 60 includes.update(['bindings/v8/ScriptCallStackFactory.h', |
| 61 'core/inspector/ScriptArguments.h']) | 61 'core/inspector/ScriptArguments.h']) |
| 62 if is_call_with_script_state: | 62 if is_call_with_script_state: |
| 63 includes.add('bindings/v8/ScriptState.h') | 63 includes.add('bindings/v8/ScriptState.h') |
| 64 is_check_security_for_node = 'CheckSecurityForNode' in extended_attributes | 64 is_check_security_for_node = 'CheckSecurityForNode' in extended_attributes |
| 65 if is_check_security_for_node: | 65 if is_check_security_for_node: |
| 66 includes.add('bindings/v8/BindingSecurity.h') | 66 includes.add('bindings/v8/BindingSecurity.h') |
| 67 | 67 |
| 68 contents = { | 68 contents = { |
| 69 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method, 'Access'), # [ActivityLogging] | 69 'activity_logging_world_list': v8_utilities.activity_logging_world_list(
method), # [ActivityLogging] |
| 70 'arguments': [generate_argument(interface, method, argument, index) | 70 'arguments': [generate_argument(interface, method, argument, index) |
| 71 for index, argument in enumerate(arguments)], | 71 for index, argument in enumerate(arguments)], |
| 72 'cpp_method': cpp_method(interface, method, len(arguments)), | 72 'cpp_method': cpp_method(interface, method, len(arguments)), |
| 73 'custom_signature': this_custom_signature, | 73 'custom_signature': this_custom_signature, |
| 74 'idl_type': method.idl_type, | 74 'idl_type': method.idl_type, |
| 75 'is_call_with_execution_context': v8_utilities.has_extended_attribute_va
lue(method, 'CallWith', 'ExecutionContext'), | 75 'is_call_with_execution_context': v8_utilities.has_extended_attribute_va
lue(method, 'CallWith', 'ExecutionContext'), |
| 76 'is_call_with_script_arguments': is_call_with_script_arguments, | 76 'is_call_with_script_arguments': is_call_with_script_arguments, |
| 77 'is_call_with_script_state': is_call_with_script_state, | 77 'is_call_with_script_state': is_call_with_script_state, |
| 78 'is_check_security_for_node': is_check_security_for_node, | 78 'is_check_security_for_node': is_check_security_for_node, |
| 79 'is_static': is_static, | 79 'is_static': is_static, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 if argument.is_variadic: | 156 if argument.is_variadic: |
| 157 return 'V8TRYCATCH_VOID(Vector<{cpp_type}>, {name}, toNativeArguments<{c
pp_type}>(info, {index}))'.format( | 157 return 'V8TRYCATCH_VOID(Vector<{cpp_type}>, {name}, toNativeArguments<{c
pp_type}>(info, {index}))'.format( |
| 158 cpp_type=v8_types.cpp_type(idl_type), name=name, index=index) | 158 cpp_type=v8_types.cpp_type(idl_type), name=name, index=index) |
| 159 if (argument.is_optional and idl_type == 'DOMString' and | 159 if (argument.is_optional and idl_type == 'DOMString' and |
| 160 extended_attributes.get('Default') == 'NullString'): | 160 extended_attributes.get('Default') == 'NullString'): |
| 161 v8_value = 'argumentOrNull(info, %s)' % index | 161 v8_value = 'argumentOrNull(info, %s)' % index |
| 162 else: | 162 else: |
| 163 v8_value = 'info[%s]' % index | 163 v8_value = 'info[%s]' % index |
| 164 return v8_types.v8_value_to_local_cpp_value( | 164 return v8_types.v8_value_to_local_cpp_value( |
| 165 idl_type, argument.extended_attributes, v8_value, name, index=index) | 165 idl_type, argument.extended_attributes, v8_value, name, index=index) |
| OLD | NEW |