OLD | NEW |
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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 if is_raises_exception: | 1384 if is_raises_exception: |
1385 cpp_arguments.append('exceptionState') | 1385 cpp_arguments.append('exceptionState') |
1386 if use_output_parameter_for_result: | 1386 if use_output_parameter_for_result: |
1387 cpp_arguments.append('result') | 1387 cpp_arguments.append('result') |
1388 | 1388 |
1389 cpp_value = '%s(%s)' % (cpp_method_name, ', '.join(cpp_arguments)) | 1389 cpp_value = '%s(%s)' % (cpp_method_name, ', '.join(cpp_arguments)) |
1390 | 1390 |
1391 return { | 1391 return { |
1392 'cpp_type': idl_type.cpp_type, | 1392 'cpp_type': idl_type.cpp_type, |
1393 'cpp_value': cpp_value, | 1393 'cpp_value': cpp_value, |
1394 'do_not_check_security': 'DoNotCheckSecurity' in extended_attributes, | |
1395 'is_call_with_script_state': is_call_with_script_state, | 1394 'is_call_with_script_state': is_call_with_script_state, |
| 1395 'is_cross_origin': 'CrossOrigin' in extended_attributes, |
1396 'is_custom': | 1396 'is_custom': |
1397 'Custom' in extended_attributes and | 1397 'Custom' in extended_attributes and |
1398 (not extended_attributes['Custom'] or | 1398 (not extended_attributes['Custom'] or |
1399 has_extended_attribute_value(getter, 'Custom', 'PropertyGetter')), | 1399 has_extended_attribute_value(getter, 'Custom', 'PropertyGetter')), |
1400 'is_custom_property_enumerator': has_extended_attribute_value( | 1400 'is_custom_property_enumerator': has_extended_attribute_value( |
1401 getter, 'Custom', 'PropertyEnumerator'), | 1401 getter, 'Custom', 'PropertyEnumerator'), |
1402 'is_custom_property_query': has_extended_attribute_value( | 1402 'is_custom_property_query': has_extended_attribute_value( |
1403 getter, 'Custom', 'PropertyQuery'), | 1403 getter, 'Custom', 'PropertyQuery'), |
1404 'is_enumerable': 'NotEnumerable' not in extended_attributes, | 1404 'is_enumerable': 'NotEnumerable' not in extended_attributes, |
1405 'is_null_expression': is_null_expression(idl_type), | 1405 'is_null_expression': is_null_expression(idl_type), |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 extended_attributes = deleter.extended_attributes | 1449 extended_attributes = deleter.extended_attributes |
1450 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1450 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
1451 is_ce_reactions = 'CEReactions' in extended_attributes | 1451 is_ce_reactions = 'CEReactions' in extended_attributes |
1452 return { | 1452 return { |
1453 'is_call_with_script_state': is_call_with_script_state, | 1453 'is_call_with_script_state': is_call_with_script_state, |
1454 'is_ce_reactions': is_ce_reactions, | 1454 'is_ce_reactions': is_ce_reactions, |
1455 'is_custom': 'Custom' in extended_attributes, | 1455 'is_custom': 'Custom' in extended_attributes, |
1456 'is_raises_exception': 'RaisesException' in extended_attributes, | 1456 'is_raises_exception': 'RaisesException' in extended_attributes, |
1457 'name': cpp_name(deleter), | 1457 'name': cpp_name(deleter), |
1458 } | 1458 } |
OLD | NEW |