Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: Source/bindings/scripts/v8_dictionary.py

Issue 700603003: IDL: Add IdlTypeBase.is_traceable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698