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

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

Issue 2809243002: Split ToV8.h (Closed)
Patch Set: Rebase Created 3 years, 8 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/NativeValueTraits.h',
19 'bindings/core/v8/ToV8.h', 19 'bindings/core/v8/ToV8ForCore.h',
20 'bindings/core/v8/V8Binding.h', 20 'bindings/core/v8/V8Binding.h',
21 'platform/heap/Handle.h', 21 'platform/heap/Handle.h',
22 ]) 22 ])
23 23
24 DICTIONARY_CPP_INCLUDES = frozenset([ 24 DICTIONARY_CPP_INCLUDES = frozenset([
25 'bindings/core/v8/ExceptionState.h', 25 'bindings/core/v8/ExceptionState.h',
26 ]) 26 ])
27 27
28 28
29 def getter_name_for_dictionary_member(member): 29 def getter_name_for_dictionary_member(member):
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 'has_method_name': has_method_name_for_dictionary_member(member), 244 'has_method_name': has_method_name_for_dictionary_member(member),
245 'is_nullable': idl_type.is_nullable, 245 'is_nullable': idl_type.is_nullable,
246 'is_traceable': idl_type.is_traceable, 246 'is_traceable': idl_type.is_traceable,
247 'member_cpp_type': idl_type.cpp_type_args(used_in_cpp_sequence=True), 247 'member_cpp_type': idl_type.cpp_type_args(used_in_cpp_sequence=True),
248 'null_setter_name': null_setter_name_for_dictionary_member(member), 248 'null_setter_name': null_setter_name_for_dictionary_member(member),
249 'nullable_indicator_name': nullable_indicator_name, 249 'nullable_indicator_name': nullable_indicator_name,
250 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), 250 'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True),
251 'setter_name': setter_name_for_dictionary_member(member), 251 'setter_name': setter_name_for_dictionary_member(member),
252 'setter_value': setter_value, 252 'setter_value': setter_value,
253 } 253 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698