| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 parent_interface = interface.parent | 89 parent_interface = interface.parent |
| 90 if parent_interface: | 90 if parent_interface: |
| 91 header_includes.update(v8_types.includes_for_interface(parent_interf
ace)) | 91 header_includes.update(v8_types.includes_for_interface(parent_interf
ace)) |
| 92 is_event_target = inherits_interface(interface.name, 'EventTarget') | 92 is_event_target = inherits_interface(interface.name, 'EventTarget') |
| 93 | 93 |
| 94 extended_attributes = interface.extended_attributes | 94 extended_attributes = interface.extended_attributes |
| 95 | 95 |
| 96 is_array_buffer_or_view = interface.idl_type.is_array_buffer_or_view | 96 is_array_buffer_or_view = interface.idl_type.is_array_buffer_or_view |
| 97 is_typed_array_type = interface.idl_type.is_typed_array | 97 is_typed_array_type = interface.idl_type.is_typed_array |
| 98 if is_array_buffer_or_view: | 98 if is_array_buffer_or_view: |
| 99 includes.add('bindings/core/v8/V8ArrayBuffer.h') | 99 includes.update(('bindings/core/v8/V8ArrayBuffer.h', |
| 100 'bindings/core/v8/V8SharedArrayBuffer.h')) |
| 100 if interface.name == 'ArrayBufferView': | 101 if interface.name == 'ArrayBufferView': |
| 101 includes.update(( | 102 includes.update(( |
| 102 'bindings/core/v8/V8Int8Array.h', | 103 'bindings/core/v8/V8Int8Array.h', |
| 103 'bindings/core/v8/V8Int16Array.h', | 104 'bindings/core/v8/V8Int16Array.h', |
| 104 'bindings/core/v8/V8Int32Array.h', | 105 'bindings/core/v8/V8Int32Array.h', |
| 105 'bindings/core/v8/V8Uint8Array.h', | 106 'bindings/core/v8/V8Uint8Array.h', |
| 106 'bindings/core/v8/V8Uint8ClampedArray.h', | 107 'bindings/core/v8/V8Uint8ClampedArray.h', |
| 107 'bindings/core/v8/V8Uint16Array.h', | 108 'bindings/core/v8/V8Uint16Array.h', |
| 108 'bindings/core/v8/V8Uint32Array.h', | 109 'bindings/core/v8/V8Uint32Array.h', |
| 109 'bindings/core/v8/V8Float32Array.h', | 110 'bindings/core/v8/V8Float32Array.h', |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 | 1357 |
| 1357 extended_attributes = deleter.extended_attributes | 1358 extended_attributes = deleter.extended_attributes |
| 1358 idl_type = deleter.idl_type | 1359 idl_type = deleter.idl_type |
| 1359 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') | 1360 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete
r, 'CallWith', 'ScriptState') |
| 1360 return { | 1361 return { |
| 1361 'is_call_with_script_state': is_call_with_script_state, | 1362 'is_call_with_script_state': is_call_with_script_state, |
| 1362 'is_custom': 'Custom' in extended_attributes, | 1363 'is_custom': 'Custom' in extended_attributes, |
| 1363 'is_raises_exception': 'RaisesException' in extended_attributes, | 1364 'is_raises_exception': 'RaisesException' in extended_attributes, |
| 1364 'name': cpp_name(deleter), | 1365 'name': cpp_name(deleter), |
| 1365 } | 1366 } |
| OLD | NEW |