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

Unified Diff: Source/core/scripts/make_dom_exceptions.pl

Issue 14283012: Absolutify paths to fileapi/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: script Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/scripts/InFilesCompiler.pm ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/scripts/make_dom_exceptions.pl
diff --git a/Source/core/scripts/make_dom_exceptions.pl b/Source/core/scripts/make_dom_exceptions.pl
index 06e1890150866f1b82614c5b8a008f69dbd85549..329fb91c24cc97e5f98534e2f3ecd35df572827e 100644
--- a/Source/core/scripts/make_dom_exceptions.pl
+++ b/Source/core/scripts/make_dom_exceptions.pl
@@ -55,9 +55,10 @@ sub generateCode()
{
my $parsedParametersRef = shift;
my $parsedItemsRef = shift;
+ my $parsedItemPathsRef = shift;
generateHeader($parsedParametersRef, $parsedItemsRef);
- generateImplementation($parsedParametersRef, $parsedItemsRef);
+ generateImplementation($parsedParametersRef, $parsedItemsRef, $parsedItemPathsRef);
$InCompiler->generateInterfacesHeader();
$InCompiler->generateHeadersHeader()
}
@@ -128,9 +129,11 @@ sub generateImplementation()
{
my $parsedParametersRef = shift;
my $parsedItemsRef = shift;
+ my $parsedItemPathsRef = shift;
my $F;
my %parsedItems = %{ $parsedItemsRef };
+ my %parsedItemPaths = %{ $parsedItemPathsRef };
my $outputFile = "$outputDir/ExceptionCodeDescription.cpp";
@@ -147,7 +150,9 @@ sub generateImplementation()
my $conditional = $parsedItems{$exceptionType}{"conditional"};
print F "#if ENABLE($conditional)\n" if $conditional;
- print F "#include \"$exceptionType.h\"\n";
+ my $path = "$exceptionType.h";
+ $path = $parsedItemPaths{$exceptionType} . "/" . $path if defined($parsedItemPaths{$exceptionType});
+ print F "#include \"$path\"\n";
print F "#endif\n" if $conditional;
}
« no previous file with comments | « Source/core/scripts/InFilesCompiler.pm ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698