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

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

Issue 199693002: Uptake codereview.chromium.org/196343011 (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1750/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 ${implClassName}* imp = ${v8ClassName}::toNative(info.Holder()); 1973 ${implClassName}* imp = ${v8ClassName}::toNative(info.Holder());
1974 END 1974 END
1975 } elsif($attrExt->{"PutForwards"}) { 1975 } elsif($attrExt->{"PutForwards"}) {
1976 my $destinationAttrName = $attrExt->{"PutForwards"}; 1976 my $destinationAttrName = $attrExt->{"PutForwards"};
1977 my $destinationInterface = ParseInterface($attrType); 1977 my $destinationInterface = ParseInterface($attrType);
1978 die "[PutForwards=x] value must be a wrapper type" unless $destinationIn terface; 1978 die "[PutForwards=x] value must be a wrapper type" unless $destinationIn terface;
1979 my $destinationAttribute = FindAttributeWithName($destinationInterface, $destinationAttrName); 1979 my $destinationAttribute = FindAttributeWithName($destinationInterface, $destinationAttrName);
1980 die "[PutForwards=x] could not find $destinationAttrName in interface $a ttrType" unless $destinationAttribute; 1980 die "[PutForwards=x] could not find $destinationAttrName in interface $a ttrType" unless $destinationAttribute;
1981 $code .= <<END; 1981 $code .= <<END;
1982 ${implClassName}* proxyImp = ${v8ClassName}::toNative(info.Holder()); 1982 ${implClassName}* proxyImp = ${v8ClassName}::toNative(info.Holder());
1983 ${attrType}* imp = proxyImp->${attrName}(); 1983 RefPtr<${attrType}> imp = proxyImp->${attrName}();
1984 if (!imp) 1984 if (!imp)
1985 return; 1985 return;
1986 END 1986 END
1987 # Override attribute and fall through to forward setter call. 1987 # Override attribute and fall through to forward setter call.
1988 $attribute = $destinationAttribute; 1988 $attribute = $destinationAttribute;
1989 $attrName = $attribute->name; 1989 $attrName = $attribute->name;
1990 $attrType = $attribute->type; 1990 $attrType = $attribute->type;
1991 $attrExt = $attribute->extendedAttributes; 1991 $attrExt = $attribute->extendedAttributes;
1992 } else { 1992 } else {
1993 my $reflect = $attribute->extendedAttributes->{"Reflect"}; 1993 my $reflect = $attribute->extendedAttributes->{"Reflect"};
(...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after
6342 6342
6343 return 1 if ExtendedAttributeContains($interface->extendedAttributes->{"Cust om"}, "ToV8"); 6343 return 1 if ExtendedAttributeContains($interface->extendedAttributes->{"Cust om"}, "ToV8");
6344 return 1 if ExtendedAttributeContains($interface->extendedAttributes->{"Cust om"}, "Wrap"); 6344 return 1 if ExtendedAttributeContains($interface->extendedAttributes->{"Cust om"}, "Wrap");
6345 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; 6345 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"};
6346 return 1 if InheritsInterface($interface, "Document"); 6346 return 1 if InheritsInterface($interface, "Document");
6347 6347
6348 return 0; 6348 return 0;
6349 } 6349 }
6350 6350
6351 1; 6351 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698