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

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

Issue 19096011: Get rid of SVGRect special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/rendering/svg/RenderSVGModelObject.h » ('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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>", 209 "SVGAngle" => "SVGPropertyTearOff<SVGAngle>",
210 "SVGLength" => "SVGPropertyTearOff<SVGLength>", 210 "SVGLength" => "SVGPropertyTearOff<SVGLength>",
211 "SVGLengthList" => "SVGListPropertyTearOff<SVGLengthList>", 211 "SVGLengthList" => "SVGListPropertyTearOff<SVGLengthList>",
212 "SVGMatrix" => "SVGPropertyTearOff<SVGMatrix>", 212 "SVGMatrix" => "SVGPropertyTearOff<SVGMatrix>",
213 "SVGNumber" => "SVGPropertyTearOff<float>", 213 "SVGNumber" => "SVGPropertyTearOff<float>",
214 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>", 214 "SVGNumberList" => "SVGListPropertyTearOff<SVGNumberList>",
215 "SVGPathSegList" => "SVGPathSegListPropertyTearOff", 215 "SVGPathSegList" => "SVGPathSegListPropertyTearOff",
216 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>", 216 "SVGPoint" => "SVGPropertyTearOff<SVGPoint>",
217 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>", 217 "SVGPointList" => "SVGListPropertyTearOff<SVGPointList>",
218 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>", 218 "SVGPreserveAspectRatio" => "SVGPropertyTearOff<SVGPreserveAspectRatio>",
219 "SVGRect" => "SVGPropertyTearOff<FloatRect>", 219 "SVGRect" => "SVGPropertyTearOff<SVGRect>",
220 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>", 220 "SVGStringList" => "SVGStaticListPropertyTearOff<SVGStringList>",
221 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>", 221 "SVGTransform" => "SVGPropertyTearOff<SVGTransform>",
222 "SVGTransformList" => "SVGTransformListPropertyTearOff" 222 "SVGTransformList" => "SVGTransformListPropertyTearOff"
223 ); 223 );
224 224
225 my %svgTypeWithWritablePropertiesNeedingTearOff = ( 225 my %svgTypeWithWritablePropertiesNeedingTearOff = (
226 "SVGPoint" => 1, 226 "SVGPoint" => 1,
227 "SVGMatrix" => 1 227 "SVGMatrix" => 1
228 ); 228 );
229 229
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 622
623 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyType> clas s SVGPropertyTearOff;\n") if $svgPropertyType; 623 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyType> clas s SVGPropertyTearOff;\n") if $svgPropertyType;
624 if ($svgNativeType) { 624 if ($svgNativeType) {
625 if ($svgNativeType =~ /SVGStaticListPropertyTearOff/) { 625 if ($svgNativeType =~ /SVGStaticListPropertyTearOff/) {
626 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyTy pe> class SVGStaticListPropertyTearOff;\n"); 626 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyTy pe> class SVGStaticListPropertyTearOff;\n");
627 } else { 627 } else {
628 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyTy pe> class SVGListPropertyTearOff;\n"); 628 $header{nameSpaceWebCore}->addHeader("\ntemplate<typename PropertyTy pe> class SVGListPropertyTearOff;\n");
629 } 629 }
630 } 630 }
631 631
632 $header{nameSpaceWebCore}->addHeader("class FloatRect;\n") if $svgPropertyTy pe && $svgPropertyType eq "FloatRect";
633 $header{nameSpaceWebCore}->addHeader("\nclass Dictionary;") if IsConstructor Template($interface, "Event"); 632 $header{nameSpaceWebCore}->addHeader("\nclass Dictionary;") if IsConstructor Template($interface, "Event");
634 633
635 my $nativeType = GetNativeTypeForConversions($interface); 634 my $nativeType = GetNativeTypeForConversions($interface);
636 if ($interface->extendedAttributes->{"NamedConstructor"}) { 635 if ($interface->extendedAttributes->{"NamedConstructor"}) {
637 $header{nameSpaceWebCore}->addHeader(<<END); 636 $header{nameSpaceWebCore}->addHeader(<<END);
638 637
639 class V8${nativeType}Constructor { 638 class V8${nativeType}Constructor {
640 public: 639 public:
641 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 640 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
642 static WrapperTypeInfo info; 641 static WrapperTypeInfo info;
(...skipping 5385 matching lines...) Expand 10 before | Expand all | Expand 10 after
6028 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6027 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6029 $found = 1; 6028 $found = 1;
6030 } 6029 }
6031 return 1 if $found; 6030 return 1 if $found;
6032 }, 0); 6031 }, 0);
6033 6032
6034 return $found; 6033 return $found;
6035 } 6034 }
6036 6035
6037 1; 6036 1;
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698