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

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

Issue 80153003: IDL compiler: [CustomLegacyCall] interfaces, cleanup header conditional spacing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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/scripts/unstable/v8_interface.py » ('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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 my $conditionalString = GenerateConditionalString($interface); 345 my $conditionalString = GenerateConditionalString($interface);
346 my $conditionalIf = ""; 346 my $conditionalIf = "";
347 my $conditionalEndif = ""; 347 my $conditionalEndif = "";
348 if ($conditionalString) { 348 if ($conditionalString) {
349 $conditionalIf = "#if ${conditionalString}"; 349 $conditionalIf = "#if ${conditionalString}";
350 $conditionalEndif = "#endif // ${conditionalString}"; 350 $conditionalEndif = "#endif // ${conditionalString}";
351 } 351 }
352 352
353 $header{root} = new Block("ROOT", "", ""); 353 $header{root} = new Block("ROOT", "", "");
354 # FIXME: newlines should be generated by Block::toString(). 354 # FIXME: newlines should be generated by Block::toString().
355 $header{conditional} = new Block("Conditional", "$conditionalIf", $condition alEndif ? "$conditionalEndif\n" : ""); 355 $header{conditional} = new Block("Conditional", "$conditionalIf", $condition alEndif ? "$conditionalEndif" : "");
356 $header{includes} = new Block("Includes", "", ""); 356 $header{includes} = new Block("Includes", "", "");
357 $header{nameSpaceWebCore} = new Block("Namespace WebCore", "\nnamespace WebC ore {\n", "}\n"); 357 $header{nameSpaceWebCore} = new Block("Namespace WebCore", "\nnamespace WebC ore {\n", "}");
358 $header{class} = new Block("Class definition", "", ""); 358 $header{class} = new Block("Class definition", "", "");
359 $header{classPublic} = new Block("Class public:", "public:", ""); 359 $header{classPublic} = new Block("Class public:", "public:", "");
360 $header{classPrivate} = new Block("Class private:", "private:", ""); 360 $header{classPrivate} = new Block("Class private:", "private:", "");
361 361
362 $header{root}->add($header{conditional}); 362 $header{root}->add($header{conditional});
363 $header{conditional}->add($header{includes}); 363 $header{conditional}->add($header{includes});
364 $header{conditional}->add($header{nameSpaceWebCore}); 364 $header{conditional}->add($header{nameSpaceWebCore});
365 $header{nameSpaceWebCore}->add($header{class}); 365 $header{nameSpaceWebCore}->add($header{class});
366 $header{class}->add($header{classPublic}); 366 $header{class}->add($header{classPublic});
367 $header{class}->add($header{classPrivate}); 367 $header{class}->add($header{classPrivate});
(...skipping 5976 matching lines...) Expand 10 before | Expand all | Expand 10 after
6344 my $interface = shift; 6344 my $interface = shift;
6345 6345
6346 return 1 if $interface->extendedAttributes->{"CustomToV8"}; 6346 return 1 if $interface->extendedAttributes->{"CustomToV8"};
6347 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; 6347 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"};
6348 return 1 if InheritsInterface($interface, "Document"); 6348 return 1 if InheritsInterface($interface, "Document");
6349 6349
6350 return 0; 6350 return 0;
6351 } 6351 }
6352 6352
6353 1; 6353 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698