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

Side by Side Diff: Source/core/scripts/make_dom_exceptions.pl

Issue 14383019: Absolutify paths to modules/*, part 1. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: .... 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/platform/mock/GeolocationClientMock.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Copyright (C) 2011 Google, Inc. All rights reserved. 7 # Copyright (C) 2011 Google, Inc. All rights reserved.
8 # 8 #
9 # Redistribution and use in source and binary forms, with or without 9 # Redistribution and use in source and binary forms, with or without
10 # modification, are permitted provided that the following conditions 10 # modification, are permitted provided that the following conditions
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 for my $exceptionType (sort keys %parsedItems) { 149 for my $exceptionType (sort keys %parsedItems) {
150 my $conditional = $parsedItems{$exceptionType}{"conditional"}; 150 my $conditional = $parsedItems{$exceptionType}{"conditional"};
151 151
152 print F "#if ENABLE($conditional)\n" if $conditional; 152 print F "#if ENABLE($conditional)\n" if $conditional;
153 my $path = "$exceptionType.h"; 153 my $path = "$exceptionType.h";
154 $path = $parsedItemPaths{$exceptionType} . "/" . $path if defined($parse dItemPaths{$exceptionType}); 154 $path = $parsedItemPaths{$exceptionType} . "/" . $path if defined($parse dItemPaths{$exceptionType});
155 print F "#include \"$path\"\n"; 155 print F "#include \"$path\"\n";
156 print F "#endif\n" if $conditional; 156 print F "#endif\n" if $conditional;
157 } 157 }
158 158
159 print F "#include \"IDBDatabaseException.h\"\n"; 159 print F "#include \"modules/indexeddb/IDBDatabaseException.h\"\n";
160 160
161 print F "\n"; 161 print F "\n";
162 print F "namespace WebCore {\n"; 162 print F "namespace WebCore {\n";
163 print F "\n"; 163 print F "\n";
164 print F "ExceptionCodeDescription::ExceptionCodeDescription(ExceptionCode ec )\n"; 164 print F "ExceptionCodeDescription::ExceptionCodeDescription(ExceptionCode ec )\n";
165 print F "{\n"; 165 print F "{\n";
166 print F " ASSERT(ec);\n"; 166 print F " ASSERT(ec);\n";
167 167
168 for my $exceptionType (sort keys %parsedItems) { 168 for my $exceptionType (sort keys %parsedItems) {
169 # DOMCoreException needs to be last because it's a catch-all. 169 # DOMCoreException needs to be last because it's a catch-all.
(...skipping 16 matching lines...) Expand all
186 186
187 print F " if (DOMCoreException::initializeDescription(ec, this))\n"; 187 print F " if (DOMCoreException::initializeDescription(ec, this))\n";
188 print F " return;\n"; 188 print F " return;\n";
189 print F " ASSERT_NOT_REACHED();\n"; 189 print F " ASSERT_NOT_REACHED();\n";
190 print F "}\n"; 190 print F "}\n";
191 print F "\n"; 191 print F "\n";
192 print F "} // namespace WebCore\n"; 192 print F "} // namespace WebCore\n";
193 193
194 close F; 194 close F;
195 } 195 }
OLDNEW
« no previous file with comments | « Source/core/platform/mock/GeolocationClientMock.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698