| 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 """Generate template contexts of dictionaries for both v8 bindings and | 5 """Generate template contexts of dictionaries for both v8 bindings and |
| 6 implementation classes that are used by blink's core/modules. | 6 implementation classes that are used by blink's core/modules. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import operator | 9 import operator |
| 10 from v8_globals import includes | 10 from v8_globals import includes |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 cpp_default_value = str(member.default_value) | 134 cpp_default_value = str(member.default_value) |
| 135 | 135 |
| 136 header_includes.update(idl_type.impl_includes_for_type(interfaces_info)) | 136 header_includes.update(idl_type.impl_includes_for_type(interfaces_info)) |
| 137 return { | 137 return { |
| 138 'cpp_default_value': cpp_default_value, | 138 'cpp_default_value': cpp_default_value, |
| 139 'cpp_name': cpp_name, | 139 'cpp_name': cpp_name, |
| 140 'getter_expression': getter_expression(), | 140 'getter_expression': getter_expression(), |
| 141 'has_method_expression': has_method_expression(), | 141 'has_method_expression': has_method_expression(), |
| 142 'has_method_name': has_method_name_for_dictionary_member(member), | 142 'has_method_name': has_method_name_for_dictionary_member(member), |
| 143 'is_object': is_object, | 143 'is_object': is_object, |
| 144 'is_traceable': (idl_type.is_garbage_collected or | 144 'is_traceable': idl_type.is_traceable, |
| 145 idl_type.is_will_be_garbage_collected), | |
| 146 'member_cpp_type': member_cpp_type(), | 145 'member_cpp_type': member_cpp_type(), |
| 147 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), | 146 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), |
| 148 'setter_name': setter_name_for_dictionary_member(member), | 147 'setter_name': setter_name_for_dictionary_member(member), |
| 149 } | 148 } |
| OLD | NEW |