| OLD | NEW |
| 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
| 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
| 5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
| 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
| 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
| (...skipping 5144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5155 return "toXPathNSResolver($value, $getIsolate)"; | 5155 return "toXPathNSResolver($value, $getIsolate)"; |
| 5156 } | 5156 } |
| 5157 | 5157 |
| 5158 my $arrayOrSequenceType = GetArrayOrSequenceType($type); | 5158 my $arrayOrSequenceType = GetArrayOrSequenceType($type); |
| 5159 | 5159 |
| 5160 if ($arrayOrSequenceType) { | 5160 if ($arrayOrSequenceType) { |
| 5161 if (IsRefPtrType($arrayOrSequenceType)) { | 5161 if (IsRefPtrType($arrayOrSequenceType)) { |
| 5162 AddToImplIncludes("V8${arrayOrSequenceType}.h"); | 5162 AddToImplIncludes("V8${arrayOrSequenceType}.h"); |
| 5163 return "(toRefPtrNativeArray<${arrayOrSequenceType}, V8${arrayOrSequ
enceType}>($value, $getIsolate))"; | 5163 return "(toRefPtrNativeArray<${arrayOrSequenceType}, V8${arrayOrSequ
enceType}>($value, $getIsolate))"; |
| 5164 } | 5164 } |
| 5165 return "toNativeArray<" . GetNativeType($arrayOrSequenceType) . ">($valu
e)"; | 5165 return "toNativeArray<" . GetNativeType($arrayOrSequenceType) . ">($valu
e, $getIsolate)"; |
| 5166 } | 5166 } |
| 5167 | 5167 |
| 5168 AddIncludesForType($type); | 5168 AddIncludesForType($type); |
| 5169 | 5169 |
| 5170 AddToImplIncludes("V8${type}.h"); | 5170 AddToImplIncludes("V8${type}.h"); |
| 5171 return "V8${type}::HasInstance($value, $getIsolate, worldType($getIsolate))
? V8${type}::toNative(v8::Handle<v8::Object>::Cast($value)) : 0"; | 5171 return "V8${type}::HasInstance($value, $getIsolate, worldType($getIsolate))
? V8${type}::toNative(v8::Handle<v8::Object>::Cast($value)) : 0"; |
| 5172 } | 5172 } |
| 5173 | 5173 |
| 5174 sub CreateCustomSignature | 5174 sub CreateCustomSignature |
| 5175 { | 5175 { |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6005 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6005 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
| 6006 $found = 1; | 6006 $found = 1; |
| 6007 } | 6007 } |
| 6008 return 1 if $found; | 6008 return 1 if $found; |
| 6009 }, 0); | 6009 }, 0); |
| 6010 | 6010 |
| 6011 return $found; | 6011 return $found; |
| 6012 } | 6012 } |
| 6013 | 6013 |
| 6014 1; | 6014 1; |
| OLD | NEW |