OLD | NEW |
1 #!/usr/bin/perl -w | 1 #!/usr/bin/perl -w |
2 | 2 |
3 # Copyright (C) 2012 Tony Chang <tony@chromium.org> | 3 # Copyright (C) 2012 Tony Chang <tony@chromium.org> |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions | 6 # modification, are permitted provided that the following conditions |
7 # are met: | 7 # are met: |
8 # 1. Redistributions of source code must retain the above copyright | 8 # 1. Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # 2. Redistributions in binary form must reproduce the above copyright | 10 # 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 my %parsedItems = %{ $parsedItemsRef }; | 374 my %parsedItems = %{ $parsedItemsRef }; |
375 | 375 |
376 my $filename = "$outputDir/InternalSettingsGenerated.h"; | 376 my $filename = "$outputDir/InternalSettingsGenerated.h"; |
377 open my $file, ">$filename" or die "Failed to open file: $!"; | 377 open my $file, ">$filename" or die "Failed to open file: $!"; |
378 print $file $InCompiler->license(); | 378 print $file $InCompiler->license(); |
379 | 379 |
380 print $file <<EOF; | 380 print $file <<EOF; |
381 #ifndef InternalSettingsGenerated_h | 381 #ifndef InternalSettingsGenerated_h |
382 #define InternalSettingsGenerated_h | 382 #define InternalSettingsGenerated_h |
383 | 383 |
384 #include "RefCountedSupplement.h" | 384 #include "core/platform/RefCountedSupplement.h" |
385 #include <wtf/PassRefPtr.h> | 385 #include <wtf/PassRefPtr.h> |
386 #include <wtf/RefCounted.h> | 386 #include <wtf/RefCounted.h> |
387 #include <wtf/text/WTFString.h> | 387 #include <wtf/text/WTFString.h> |
388 | 388 |
389 namespace WebCore { | 389 namespace WebCore { |
390 | 390 |
391 class Page; | 391 class Page; |
392 | 392 |
393 class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> { | 393 class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> { |
394 public: | 394 public: |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 print $file "#endif\n"; | 522 print $file "#endif\n"; |
523 } | 523 } |
524 print $file "}\n\n"; | 524 print $file "}\n\n"; |
525 }; | 525 }; |
526 enumerateParsedItems($file, $parsedItemsRef, \&writeSetterFunctions); | 526 enumerateParsedItems($file, $parsedItemsRef, \&writeSetterFunctions); |
527 | 527 |
528 print $file "} // namespace WebCore\n"; | 528 print $file "} // namespace WebCore\n"; |
529 | 529 |
530 close $file; | 530 close $file; |
531 } | 531 } |
OLD | NEW |