| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 'bindings/core/v8/V8Int16Array.h', | 101 'bindings/core/v8/V8Int16Array.h', |
| 102 'bindings/core/v8/V8Int32Array.h', | 102 'bindings/core/v8/V8Int32Array.h', |
| 103 'bindings/core/v8/V8Uint8Array.h', | 103 'bindings/core/v8/V8Uint8Array.h', |
| 104 'bindings/core/v8/V8Uint8ClampedArray.h', | 104 'bindings/core/v8/V8Uint8ClampedArray.h', |
| 105 'bindings/core/v8/V8Uint16Array.h', | 105 'bindings/core/v8/V8Uint16Array.h', |
| 106 'bindings/core/v8/V8Uint32Array.h', | 106 'bindings/core/v8/V8Uint32Array.h', |
| 107 'bindings/core/v8/V8Float32Array.h', | 107 'bindings/core/v8/V8Float32Array.h', |
| 108 'bindings/core/v8/V8Float64Array.h', | 108 'bindings/core/v8/V8Float64Array.h', |
| 109 'bindings/core/v8/V8DataView.h')) | 109 'bindings/core/v8/V8DataView.h')) |
| 110 | 110 |
| 111 # [ActiveScriptWrappable] |
| 112 active_scriptwrappable = 'ActiveScriptWrappable' in extended_attributes |
| 113 |
| 111 # [CheckSecurity] | 114 # [CheckSecurity] |
| 112 is_check_security = 'CheckSecurity' in extended_attributes | 115 is_check_security = 'CheckSecurity' in extended_attributes |
| 113 if is_check_security: | 116 if is_check_security: |
| 114 includes.add('bindings/core/v8/BindingSecurity.h') | 117 includes.add('bindings/core/v8/BindingSecurity.h') |
| 115 | 118 |
| 116 # [DependentLifetime] | 119 # [DependentLifetime] |
| 117 is_dependent_lifetime = 'DependentLifetime' in extended_attributes | 120 is_dependent_lifetime = 'DependentLifetime' in extended_attributes |
| 118 | 121 |
| 119 # [PrimaryGlobal] and [Global] | 122 # [PrimaryGlobal] and [Global] |
| 120 is_global = ('PrimaryGlobal' in extended_attributes or | 123 is_global = ('PrimaryGlobal' in extended_attributes or |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 'is_node': inherits_interface(interface.name, 'Node'), | 188 'is_node': inherits_interface(interface.name, 'Node'), |
| 186 'is_partial': interface.is_partial, | 189 'is_partial': interface.is_partial, |
| 187 'is_typed_array_type': is_typed_array_type, | 190 'is_typed_array_type': is_typed_array_type, |
| 188 'lifetime': 'Dependent' if (has_visit_dom_wrapper or is_dependent_lifeti
me) else 'Independent', | 191 'lifetime': 'Dependent' if (has_visit_dom_wrapper or is_dependent_lifeti
me) else 'Independent', |
| 189 'measure_as': v8_utilities.measure_as(interface, None), # [MeasureAs] | 192 'measure_as': v8_utilities.measure_as(interface, None), # [MeasureAs] |
| 190 'origin_trial_name': v8_utilities.origin_trial_name(interface), | 193 'origin_trial_name': v8_utilities.origin_trial_name(interface), |
| 191 'parent_interface': parent_interface, | 194 'parent_interface': parent_interface, |
| 192 'pass_cpp_type': cpp_template_type( | 195 'pass_cpp_type': cpp_template_type( |
| 193 cpp_ptr_type('PassRefPtr', 'RawPtr', this_gc_type), | 196 cpp_ptr_type('PassRefPtr', 'RawPtr', this_gc_type), |
| 194 cpp_name(interface)), | 197 cpp_name(interface)), |
| 198 'active_scriptwrappable': active_scriptwrappable, |
| 195 'runtime_enabled_function': runtime_enabled_function_name(interface), #
[RuntimeEnabled] | 199 'runtime_enabled_function': runtime_enabled_function_name(interface), #
[RuntimeEnabled] |
| 196 'set_wrapper_reference_from': set_wrapper_reference_from, | 200 'set_wrapper_reference_from': set_wrapper_reference_from, |
| 197 'set_wrapper_reference_to': set_wrapper_reference_to, | 201 'set_wrapper_reference_to': set_wrapper_reference_to, |
| 198 'v8_class': v8_class_name, | 202 'v8_class': v8_class_name, |
| 199 'v8_class_or_partial': v8_class_name_or_partial, | 203 'v8_class_or_partial': v8_class_name_or_partial, |
| 200 'wrapper_class_id': wrapper_class_id, | 204 'wrapper_class_id': wrapper_class_id, |
| 201 } | 205 } |
| 202 | 206 |
| 203 # Constructors | 207 # Constructors |
| 204 constructors = [constructor_context(interface, constructor) | 208 constructors = [constructor_context(interface, constructor) |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 | 1399 |
| 1396 extended_attributes = deleter.extended_attributes | 1400 extended_attributes = deleter.extended_attributes |
| 1397 idl_type = deleter.idl_type | 1401 idl_type = deleter.idl_type |
| 1398 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1402 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
| 1399 return { | 1403 return { |
| 1400 'is_call_with_script_state': is_call_with_script_state, | 1404 'is_call_with_script_state': is_call_with_script_state, |
| 1401 'is_custom': 'Custom' in extended_attributes, | 1405 'is_custom': 'Custom' in extended_attributes, |
| 1402 'is_raises_exception': 'RaisesException' in extended_attributes, | 1406 'is_raises_exception': 'RaisesException' in extended_attributes, |
| 1403 'name': cpp_name(deleter), | 1407 'name': cpp_name(deleter), |
| 1404 } | 1408 } |
| OLD | NEW |