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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExceptionCode.h

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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
OLDNEW
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details. 12 * Lesser General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Lesser General Public 14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software 15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U SA 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17 * USA
17 */ 18 */
18 19
19 #ifndef ExceptionCode_h 20 #ifndef ExceptionCode_h
20 #define ExceptionCode_h 21 #define ExceptionCode_h
21 22
22 namespace blink { 23 namespace blink {
23 24
24 // The DOM standards use unsigned short for exception codes. 25 // The DOM standards use unsigned short for exception codes.
25 // In our DOM implementation we use int instead, and use different 26 // In our DOM implementation we use int instead, and use different
26 // numerical ranges for different types of DOM exception, so that 27 // numerical ranges for different types of DOM exception, so that
27 // an exception of any type can be expressed with a single integer. 28 // an exception of any type can be expressed with a single integer.
28 typedef int ExceptionCode; 29 typedef int ExceptionCode;
29 30
30 // This list must be in sync with the |domExceptions| in PrivateScriptRunner.js and |coreExceptions| in DOMExceptions.cpp. 31 // This list must be in sync with the |domExceptions| in PrivateScriptRunner.js
32 // and |coreExceptions| in DOMExceptions.cpp.
31 // Some of these are considered historical since they have been 33 // Some of these are considered historical since they have been
32 // changed or removed from the specifications. 34 // changed or removed from the specifications.
33 enum { 35 enum {
34 IndexSizeError = 1, 36 IndexSizeError = 1,
35 HierarchyRequestError, 37 HierarchyRequestError,
36 WrongDocumentError, 38 WrongDocumentError,
37 InvalidCharacterError, 39 InvalidCharacterError,
38 NoModificationAllowedError, 40 NoModificationAllowedError,
39 NotFoundError, 41 NotFoundError,
40 NotSupportedError, 42 NotSupportedError,
41 InUseAttributeError, // Historical. Only used in setAttributeNode etc which h ave been removed from the DOM specs. 43 InUseAttributeError, // Historical. Only used in setAttributeNode etc which
44 // have been removed from the DOM specs.
42 45
43 // Introduced in DOM Level 2: 46 // Introduced in DOM Level 2:
44 InvalidStateError, 47 InvalidStateError,
45 SyntaxError, 48 SyntaxError,
46 InvalidModificationError, 49 InvalidModificationError,
47 NamespaceError, 50 NamespaceError,
48 InvalidAccessError, 51 InvalidAccessError,
49 52
50 // Introduced in DOM Level 3: 53 // Introduced in DOM Level 3:
51 TypeMismatchError, // Historical; use TypeError instead 54 TypeMismatchError, // Historical; use TypeError instead
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 V8Error = 1000, 97 V8Error = 1000,
95 V8TypeError, 98 V8TypeError,
96 V8RangeError, 99 V8RangeError,
97 V8SyntaxError, 100 V8SyntaxError,
98 V8ReferenceError, 101 V8ReferenceError,
99 }; 102 };
100 103
101 } // namespace blink 104 } // namespace blink
102 105
103 #endif // ExceptionCode_h 106 #endif // ExceptionCode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698