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

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

Issue 698923002: Enable Oilpan for core/xml/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Non-Oilpan fixes 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
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 'unsigned short', 105 'unsigned short',
106 ]) 106 ])
107 CPP_SPECIAL_CONVERSION_RULES = { 107 CPP_SPECIAL_CONVERSION_RULES = {
108 'Date': 'double', 108 'Date': 'double',
109 'Dictionary': 'Dictionary', 109 'Dictionary': 'Dictionary',
110 'EventHandler': 'EventListener*', 110 'EventHandler': 'EventListener*',
111 'NodeFilter': 'RefPtrWillBeRawPtr<NodeFilter>', 111 'NodeFilter': 'RefPtrWillBeRawPtr<NodeFilter>',
112 'Promise': 'ScriptPromise', 112 'Promise': 'ScriptPromise',
113 'ScriptValue': 'ScriptValue', 113 'ScriptValue': 'ScriptValue',
114 # FIXME: Eliminate custom bindings for XPathNSResolver http://crbug.com/345 529 114 # FIXME: Eliminate custom bindings for XPathNSResolver http://crbug.com/345 529
115 'XPathNSResolver': 'RefPtrWillBeRawPtr<XPathNSResolver>', 115 'XPathNSResolver': 'RawPtr<XPathNSResolver>',
116 'boolean': 'bool', 116 'boolean': 'bool',
117 'unrestricted double': 'double', 117 'unrestricted double': 'double',
118 'unrestricted float': 'float', 118 'unrestricted float': 'float',
119 } 119 }
120 120
121 121
122 def cpp_type(idl_type, extended_attributes=None, raw_type=False, used_as_rvalue_ type=False, used_as_variadic_argument=False, used_in_cpp_sequence=False): 122 def cpp_type(idl_type, extended_attributes=None, raw_type=False, used_as_rvalue_ type=False, used_as_variadic_argument=False, used_in_cpp_sequence=False):
123 """Returns C++ type corresponding to IDL type. 123 """Returns C++ type corresponding to IDL type.
124 124
125 |idl_type| argument is of type IdlType, while return value is a string 125 |idl_type| argument is of type IdlType, while return value is a string
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 857
858 858
859 def is_explicit_nullable(idl_type): 859 def is_explicit_nullable(idl_type):
860 # Nullable type that isn't implicit nullable (see above.) For such types, 860 # Nullable type that isn't implicit nullable (see above.) For such types,
861 # we use Nullable<T> or similar explicit ways to represent a null value. 861 # we use Nullable<T> or similar explicit ways to represent a null value.
862 return idl_type.is_nullable and not idl_type.is_implicit_nullable 862 return idl_type.is_nullable and not idl_type.is_implicit_nullable
863 863
864 IdlTypeBase.is_implicit_nullable = property(is_implicit_nullable) 864 IdlTypeBase.is_implicit_nullable = property(is_implicit_nullable)
865 IdlUnionType.is_implicit_nullable = False 865 IdlUnionType.is_implicit_nullable = False
866 IdlTypeBase.is_explicit_nullable = property(is_explicit_nullable) 866 IdlTypeBase.is_explicit_nullable = property(is_explicit_nullable)
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8DocumentCustom.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698