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

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

Issue 1635863006: Pointerevent capture APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
(...skipping 10 matching lines...) Expand all
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,
mustaq 2016/02/06 04:36:31 Wow, yet another definition of DOM exception, now
Navid Zolghadr 2016/02/08 15:58:42 I filed a bug for this.
36 HierarchyRequestError, 36 HierarchyRequestError,
37 WrongDocumentError, 37 WrongDocumentError,
38 InvalidCharacterError, 38 InvalidCharacterError,
39 NoModificationAllowedError, 39 NoModificationAllowedError,
40 NotFoundError, 40 NotFoundError,
41 NotSupportedError, 41 NotSupportedError,
42 InUseAttributeError, // Historical. Only used in setAttributeNode etc which have been removed from the DOM specs. 42 InUseAttributeError, // Historical. Only used in setAttributeNode etc which have been removed from the DOM specs.
43 43
44 // Introduced in DOM Level 2: 44 // Introduced in DOM Level 2:
45 InvalidStateError, 45 InvalidStateError,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 PathExistsError, 77 PathExistsError,
78 78
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
88 // Pointer Events
89 InvalidPointerId,
90
87 }; 91 };
88 92
89 enum V8ErrorType { 93 enum V8ErrorType {
90 V8GeneralError = 1000, 94 V8GeneralError = 1000,
91 V8TypeError, 95 V8TypeError,
92 V8RangeError, 96 V8RangeError,
93 V8SyntaxError, 97 V8SyntaxError,
94 V8ReferenceError, 98 V8ReferenceError,
95 }; 99 };
96 100
97 } // namespace blink 101 } // namespace blink
98 102
99 #endif // ExceptionCode_h 103 #endif // ExceptionCode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698