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

Side by Side Diff: Source/bindings/scripts/v8_union.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 | « Source/bindings/scripts/v8_types.py ('k') | no next file » | 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 import v8_utilities 5 import v8_utilities
6 6
7 7
8 UNION_H_INCLUDES = frozenset([ 8 UNION_H_INCLUDES = frozenset([
9 'bindings/core/v8/ExceptionState.h', 9 'bindings/core/v8/ExceptionState.h',
10 'bindings/core/v8/V8Binding.h', 10 'bindings/core/v8/V8Binding.h',
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if interface_info: 77 if interface_info:
78 cpp_includes.update(interface_info.get('dependencies_include_paths', []) ) 78 cpp_includes.update(interface_info.get('dependencies_include_paths', []) )
79 header_forward_decls.add(member.name) 79 header_forward_decls.add(member.name)
80 return { 80 return {
81 'cpp_name': v8_utilities.uncapitalize(member.name), 81 'cpp_name': v8_utilities.uncapitalize(member.name),
82 'cpp_type': member.cpp_type_args(used_in_cpp_sequence=True), 82 'cpp_type': member.cpp_type_args(used_in_cpp_sequence=True),
83 'cpp_local_type': member.cpp_type, 83 'cpp_local_type': member.cpp_type,
84 'cpp_value_to_v8_value': member.cpp_value_to_v8_value( 84 'cpp_value_to_v8_value': member.cpp_value_to_v8_value(
85 cpp_value='impl.getAs%s()' % member.name, isolate='isolate', 85 cpp_value='impl.getAs%s()' % member.name, isolate='isolate',
86 creation_context='creationContext'), 86 creation_context='creationContext'),
87 'is_traceable': (member.is_garbage_collected or 87 'is_traceable': member.is_traceable,
88 member.is_will_be_garbage_collected),
89 'rvalue_cpp_type': member.cpp_type_args(used_as_rvalue_type=True), 88 'rvalue_cpp_type': member.cpp_type_args(used_as_rvalue_type=True),
90 'specific_type_enum': 'SpecificType' + member.name, 89 'specific_type_enum': 'SpecificType' + member.name,
91 'type_name': member.name, 90 'type_name': member.name,
92 'v8_value_to_local_cpp_value': member.v8_value_to_local_cpp_value( 91 'v8_value_to_local_cpp_value': member.v8_value_to_local_cpp_value(
93 {}, 'v8Value', 'cppValue', needs_exception_state_for_string=True), 92 {}, 'v8Value', 'cppValue', needs_exception_state_for_string=True),
94 } 93 }
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698