OLD | NEW |
1 #!/usr/bin/perl -w | 1 #!/usr/bin/perl -w |
2 | 2 |
3 # Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 3 # Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. |
4 # Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org> | 4 # Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org> |
5 # Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmob
ile.com/) | 5 # Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmob
ile.com/) |
6 # Copyright (C) 2011 Ericsson AB. All rights reserved. | 6 # Copyright (C) 2011 Ericsson AB. All rights reserved. |
7 # | 7 # |
8 # Redistribution and use in source and binary forms, with or without | 8 # Redistribution and use in source and binary forms, with or without |
9 # modification, are permitted provided that the following conditions | 9 # modification, are permitted provided that the following conditions |
10 # are met: | 10 # are met: |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 AtomicString::init(); | 569 AtomicString::init(); |
570 "; | 570 "; |
571 } | 571 } |
572 | 572 |
573 sub printLicenseHeader | 573 sub printLicenseHeader |
574 { | 574 { |
575 my $F = shift; | 575 my $F = shift; |
576 print F "/* | 576 print F "/* |
577 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. | 577 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. |
578 * | 578 * |
579 * This file was generated by the dom/make_names.pl script. | 579 * This file was generated by the core/scripts/make_names.pl script. |
580 * | 580 * |
581 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 581 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
582 * | 582 * |
583 * Redistribution and use in source and binary forms, with or without | 583 * Redistribution and use in source and binary forms, with or without |
584 * modification, are permitted provided that the following conditions | 584 * modification, are permitted provided that the following conditions |
585 * are met: | 585 * are met: |
586 * 1. Redistributions of source code must retain the above copyright | 586 * 1. Redistributions of source code must retain the above copyright |
587 * notice, this list of conditions and the following disclaimer. | 587 * notice, this list of conditions and the following disclaimer. |
588 * 2. Redistributions in binary form must reproduce the above copyright | 588 * 2. Redistributions in binary form must reproduce the above copyright |
589 * notice, this list of conditions and the following disclaimer in the | 589 * notice, this list of conditions and the following disclaimer in the |
(...skipping 15 matching lines...) Expand all Loading... |
605 "; | 605 "; |
606 } | 606 } |
607 | 607 |
608 sub printNamesHeaderFile | 608 sub printNamesHeaderFile |
609 { | 609 { |
610 my ($headerPath) = shift; | 610 my ($headerPath) = shift; |
611 my $F; | 611 my $F; |
612 open F, ">$headerPath"; | 612 open F, ">$headerPath"; |
613 | 613 |
614 printLicenseHeader($F); | 614 printLicenseHeader($F); |
615 printHeaderHead($F, "DOM", $parameters{namespace}, "#include \"QualifiedName
.h\""); | 615 printHeaderHead($F, "DOM", $parameters{namespace}, "#include \"core/dom/Qual
ifiedName.h\""); |
616 | 616 |
617 my $lowerNamespace = lc($parameters{namespacePrefix}); | 617 my $lowerNamespace = lc($parameters{namespacePrefix}); |
618 print F "// Namespace\n"; | 618 print F "// Namespace\n"; |
619 print F "extern const WTF::AtomicString ${lowerNamespace}NamespaceURI;\n\n"; | 619 print F "extern const WTF::AtomicString ${lowerNamespace}NamespaceURI;\n\n"; |
620 | 620 |
621 if (keys %allTags) { | 621 if (keys %allTags) { |
622 print F "// Tags\n"; | 622 print F "// Tags\n"; |
623 printMacros($F, "extern const WebCore::QualifiedName", "Tag", \%allTags)
; | 623 printMacros($F, "extern const WebCore::QualifiedName", "Tag", \%allTags)
; |
624 } | 624 } |
625 | 625 |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 } | 1262 } |
1263 } | 1263 } |
1264 END | 1264 END |
1265 ; | 1265 ; |
1266 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; | 1266 print F "#endif // $parameters{guardFactoryWith}\n\n" if $parameters{guardFa
ctoryWith}; |
1267 | 1267 |
1268 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; | 1268 print F "#endif // V8$parameters{namespace}ElementWrapperFactory_h\n"; |
1269 | 1269 |
1270 close F; | 1270 close F; |
1271 } | 1271 } |
OLD | NEW |