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

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

Issue 2730183003: bindings: Add C++ versions of WebIDL types and generalize NativeValueTraits. (Closed)
Patch Set: Move specialization for SerializedScriptValue to the appropriate header Created 3 years, 9 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
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
11 from v8_globals import includes 11 from v8_globals import includes
12 import v8_types 12 import v8_types
13 import v8_utilities 13 import v8_utilities
14 from v8_utilities import has_extended_attribute_value 14 from v8_utilities import has_extended_attribute_value
15 15
16 16
17 DICTIONARY_H_INCLUDES = frozenset([ 17 DICTIONARY_H_INCLUDES = frozenset([
18 'bindings/core/v8/NativeValueTraits.h',
18 'bindings/core/v8/ToV8.h', 19 'bindings/core/v8/ToV8.h',
19 'bindings/core/v8/V8Binding.h', 20 'bindings/core/v8/V8Binding.h',
20 'platform/heap/Handle.h', 21 'platform/heap/Handle.h',
21 ]) 22 ])
22 23
23 DICTIONARY_CPP_INCLUDES = frozenset([ 24 DICTIONARY_CPP_INCLUDES = frozenset([
24 'bindings/core/v8/ExceptionState.h', 25 'bindings/core/v8/ExceptionState.h',
25 ]) 26 ])
26 27
27 28
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 'has_method_expression': has_method_expression(), 237 'has_method_expression': has_method_expression(),
237 'has_method_name': has_method_name_for_dictionary_member(member), 238 'has_method_name': has_method_name_for_dictionary_member(member),
238 'is_nullable': idl_type.is_nullable, 239 'is_nullable': idl_type.is_nullable,
239 'is_traceable': idl_type.is_traceable, 240 'is_traceable': idl_type.is_traceable,
240 'member_cpp_type': idl_type.cpp_type_args(used_in_cpp_sequence=True), 241 'member_cpp_type': idl_type.cpp_type_args(used_in_cpp_sequence=True),
241 'null_setter_name': null_setter_name_for_dictionary_member(member), 242 'null_setter_name': null_setter_name_for_dictionary_member(member),
242 'nullable_indicator_name': nullable_indicator_name, 243 'nullable_indicator_name': nullable_indicator_name,
243 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), 244 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True),
244 'setter_name': setter_name_for_dictionary_member(member), 245 'setter_name': setter_name_for_dictionary_member(member),
245 } 246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698