| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Lesser General Public | 5 * modify it under the terms of the GNU Lesser General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 // The DOM standards use unsigned short for exception codes. | 24 // The DOM standards use unsigned short for exception codes. |
| 25 // In our DOM implementation we use int instead, and use different | 25 // In our DOM implementation we use int instead, and use different |
| 26 // numerical ranges for different types of DOM exception, so that | 26 // numerical ranges for different types of DOM exception, so that |
| 27 // an exception of any type can be expressed with a single integer. | 27 // an exception of any type can be expressed with a single integer. |
| 28 typedef int ExceptionCode; | 28 typedef int ExceptionCode; |
| 29 | 29 |
| 30 | 30 |
| 31 // This list must be in sync with the |domExceptions| in PrivateScriptRunner.h. | 31 // This list must be in sync with the |domExceptions| in PrivateScriptRunner.js
and |coreExceptions| in DOMExceptions.cpp. |
| 32 // Some of these are considered historical since they have been | 32 // Some of these are considered historical since they have been |
| 33 // changed or removed from the specifications. | 33 // changed or removed from the specifications. |
| 34 enum { | 34 enum { |
| 35 IndexSizeError = 1, | 35 IndexSizeError = 1, |
| 36 HierarchyRequestError, | 36 HierarchyRequestError, |
| 37 WrongDocumentError, | 37 WrongDocumentError, |
| 38 InvalidCharacterError, | 38 InvalidCharacterError, |
| 39 NoModificationAllowedError, | 39 NoModificationAllowedError, |
| 40 NotFoundError, | 40 NotFoundError, |
| 41 NotSupportedError, | 41 NotSupportedError, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // SQL | 79 // SQL |
| 80 SQLDatabaseError, // Naming conflict with DatabaseError class. | 80 SQLDatabaseError, // Naming conflict with DatabaseError class. |
| 81 | 81 |
| 82 // Web Crypto | 82 // Web Crypto |
| 83 OperationError, | 83 OperationError, |
| 84 | 84 |
| 85 // Push API | 85 // Push API |
| 86 PermissionDeniedError, | 86 PermissionDeniedError, |
| 87 | 87 |
| 88 NotAllowedError, | 88 NotAllowedError, |
| 89 |
| 90 // Pointer Events |
| 91 InvalidPointerId, |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 enum V8ErrorType { | 94 enum V8ErrorType { |
| 92 V8GeneralError = 1000, | 95 V8GeneralError = 1000, |
| 93 V8TypeError, | 96 V8TypeError, |
| 94 V8RangeError, | 97 V8RangeError, |
| 95 V8SyntaxError, | 98 V8SyntaxError, |
| 96 V8ReferenceError, | 99 V8ReferenceError, |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace blink | 102 } // namespace blink |
| 100 | 103 |
| 101 #endif // ExceptionCode_h | 104 #endif // ExceptionCode_h |
| OLD | NEW |