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

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

Issue 19256015: Get rid of special casing for SVGAElement.target from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/svg/SVGAElement.idl » ('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 5816 matching lines...) Expand 10 before | Expand all | Expand 10 after
5827 5827
5828 my $attributeName = GetImplName($attribute); 5828 my $attributeName = GetImplName($attribute);
5829 if ($attribute->extendedAttributes->{"ImplementedAs"}) { 5829 if ($attribute->extendedAttributes->{"ImplementedAs"}) {
5830 $attributeName = $attribute->extendedAttributes->{"ImplementedAs"}; 5830 $attributeName = $attribute->extendedAttributes->{"ImplementedAs"};
5831 } 5831 }
5832 my $attributeType = $attribute->type; 5832 my $attributeType = $attribute->type;
5833 5833
5834 # Avoid clash with C++ keyword. 5834 # Avoid clash with C++ keyword.
5835 $attributeName = "_operator" if $attributeName eq "operator"; 5835 $attributeName = "_operator" if $attributeName eq "operator";
5836 5836
5837 # SVGAElement defines a non-virtual "String& target() const" method which cl ashes with "virtual String target() const" in Element.
5838 # To solve this issue the SVGAElement method was renamed to "svgTarget", tak e care of that when calling this method.
5839 $attributeName = "svgTarget" if $attributeName eq "target" and $attributeTyp e eq "SVGAnimatedString";
5840
5841 return $attributeName; 5837 return $attributeName;
5842 } 5838 }
5843 5839
5844 sub ContentAttributeName 5840 sub ContentAttributeName
5845 { 5841 {
5846 my ($interfaceName, $attribute) = @_; 5842 my ($interfaceName, $attribute) = @_;
5847 5843
5848 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"}; 5844 my $contentAttributeName = $attribute->extendedAttributes->{"Reflect"};
5849 return undef if !$contentAttributeName; 5845 return undef if !$contentAttributeName;
5850 5846
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
6013 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6009 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6014 $found = 1; 6010 $found = 1;
6015 } 6011 }
6016 return 1 if $found; 6012 return 1 if $found;
6017 }, 0); 6013 }, 0);
6018 6014
6019 return $found; 6015 return $found;
6020 } 6016 }
6021 6017
6022 1; 6018 1;
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGAElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698