OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import v8_types | 5 import v8_types |
6 import v8_utilities | 6 import v8_utilities |
7 | 7 |
8 | 8 |
9 UNION_CPP_INCLUDES = frozenset([ | 9 UNION_CPP_INCLUDES = frozenset([ |
10 'bindings/core/v8/ToV8.h', | 10 'bindings/core/v8/ToV8.h', |
11 ]) | 11 ]) |
12 | 12 |
13 UNION_H_INCLUDES = frozenset([ | 13 UNION_H_INCLUDES = frozenset([ |
14 'bindings/core/v8/Dictionary.h', | 14 'bindings/core/v8/Dictionary.h', |
15 'bindings/core/v8/ExceptionState.h', | 15 'bindings/core/v8/ExceptionState.h', |
| 16 'bindings/core/v8/IDLTypes.h', |
16 'bindings/core/v8/V8Binding.h', | 17 'bindings/core/v8/V8Binding.h', |
17 'platform/heap/Handle.h', | 18 'platform/heap/Handle.h', |
18 ]) | 19 ]) |
19 | 20 |
20 UNION_CPP_INCLUDES_BLACKLIST = frozenset([ | 21 UNION_CPP_INCLUDES_BLACKLIST = frozenset([ |
21 # This header defines static functions needed to implement event handler | 22 # This header defines static functions needed to implement event handler |
22 # attributes in interfaces that implement GlobalEventHandlers. They are not | 23 # attributes in interfaces that implement GlobalEventHandlers. They are not |
23 # needed or used by UnionTypes*.cpp, so including the header causes | 24 # needed or used by UnionTypes*.cpp, so including the header causes |
24 # compilation errors. | 25 # compilation errors. |
25 # FIXME: We should solve this problem in a way that doesn't involve special- | 26 # FIXME: We should solve this problem in a way that doesn't involve special- |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 'enum_values': member.enum_values, | 146 'enum_values': member.enum_values, |
146 'is_array_buffer_or_view_type': member.is_array_buffer_or_view, | 147 'is_array_buffer_or_view_type': member.is_array_buffer_or_view, |
147 'is_traceable': member.is_traceable, | 148 'is_traceable': member.is_traceable, |
148 'rvalue_cpp_type': member.cpp_type_args(used_as_rvalue_type=True), | 149 'rvalue_cpp_type': member.cpp_type_args(used_as_rvalue_type=True), |
149 'specific_type_enum': 'SpecificType' + member.name, | 150 'specific_type_enum': 'SpecificType' + member.name, |
150 'type_name': member.name, | 151 'type_name': member.name, |
151 'v8_value_to_local_cpp_value': member.v8_value_to_local_cpp_value( | 152 'v8_value_to_local_cpp_value': member.v8_value_to_local_cpp_value( |
152 {}, 'v8Value', 'cppValue', isolate='isolate', | 153 {}, 'v8Value', 'cppValue', isolate='isolate', |
153 use_exception_state=True) | 154 use_exception_state=True) |
154 } | 155 } |
OLD | NEW |