| 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 # 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |