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

Side by Side Diff: Source/bindings/scripts/deprecated_code_generator_v8.pm

Issue 19969004: Update toNativeArray() / toRefPtrNativeArray() do not match Web IDL specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6004 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6004 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6005 $found = 1; 6005 $found = 1;
6006 } 6006 }
6007 return 1 if $found; 6007 return 1 if $found;
6008 }, 0); 6008 }, 0);
6009 6009
6010 return $found; 6010 return $found;
6011 } 6011 }
6012 6012
6013 1; 6013 1;
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-lineDash-input-sequence-expected.txt ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698