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

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

Issue 1412433004: bindings: Generation of dictionary IDLs with RuntimeEnabled attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 | third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp » ('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 idl_types import IdlType 10 from idl_types import IdlType
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 'deprecate_as': v8_utilities.deprecate_as(member), 112 'deprecate_as': v8_utilities.deprecate_as(member),
113 'enum_type': idl_type.enum_type, 113 'enum_type': idl_type.enum_type,
114 'enum_values': unwrapped_idl_type.enum_values, 114 'enum_values': unwrapped_idl_type.enum_values,
115 'has_method_name': has_method_name_for_dictionary_member(member), 115 'has_method_name': has_method_name_for_dictionary_member(member),
116 'idl_type': idl_type.base_type, 116 'idl_type': idl_type.base_type,
117 'is_interface_type': idl_type.is_interface_type and not (idl_type.is_dic tionary_type or is_deprecated_dictionary), 117 'is_interface_type': idl_type.is_interface_type and not (idl_type.is_dic tionary_type or is_deprecated_dictionary),
118 'is_nullable': idl_type.is_nullable, 118 'is_nullable': idl_type.is_nullable,
119 'is_object': unwrapped_idl_type.name == 'Object' or is_deprecated_dictio nary, 119 'is_object': unwrapped_idl_type.name == 'Object' or is_deprecated_dictio nary,
120 'is_required': member.is_required, 120 'is_required': member.is_required,
121 'name': member.name, 121 'name': member.name,
122 'runtime_enabled_function': v8_utilities.runtime_enabled_function_name(m ember), # [RuntimeEnabled]
122 'setter_name': setter_name_for_dictionary_member(member), 123 'setter_name': setter_name_for_dictionary_member(member),
123 'null_setter_name': null_setter_name_for_dictionary_member(member), 124 'null_setter_name': null_setter_name_for_dictionary_member(member),
124 'v8_default_value': v8_default_value, 125 'v8_default_value': v8_default_value,
125 'v8_value_to_local_cpp_value': unwrapped_idl_type.v8_value_to_local_cpp_ value( 126 'v8_value_to_local_cpp_value': unwrapped_idl_type.v8_value_to_local_cpp_ value(
126 extended_attributes, member.name + 'Value', 127 extended_attributes, member.name + 'Value',
127 member.name, isolate='isolate', use_exception_state=True), 128 member.name, isolate='isolate', use_exception_state=True),
128 } 129 }
129 130
130 131
131 # Context for implementation classes 132 # Context for implementation classes
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 'getter_expression': getter_expression(), 201 'getter_expression': getter_expression(),
201 'has_method_expression': has_method_expression(), 202 'has_method_expression': has_method_expression(),
202 'has_method_name': has_method_name_for_dictionary_member(member), 203 'has_method_name': has_method_name_for_dictionary_member(member),
203 'is_nullable': idl_type.is_nullable, 204 'is_nullable': idl_type.is_nullable,
204 'is_traceable': idl_type.is_traceable, 205 'is_traceable': idl_type.is_traceable,
205 'member_cpp_type': member_cpp_type(), 206 'member_cpp_type': member_cpp_type(),
206 'null_setter_name': null_setter_name_for_dictionary_member(member), 207 'null_setter_name': null_setter_name_for_dictionary_member(member),
207 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), 208 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True),
208 'setter_name': setter_name_for_dictionary_member(member), 209 'setter_name': setter_name_for_dictionary_member(member),
209 } 210 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/templates/dictionary_v8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698