OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 28 matching lines...) Expand all Loading... |
39 class ExceptionState; | 39 class ExceptionState; |
40 | 40 |
41 class CustomElementException { | 41 class CustomElementException { |
42 public: | 42 public: |
43 enum Reason { | 43 enum Reason { |
44 CannotRegisterFromExtension, | 44 CannotRegisterFromExtension, |
45 ConstructorPropertyNotConfigurable, | 45 ConstructorPropertyNotConfigurable, |
46 ContextDestroyedCheckingPrototype, | 46 ContextDestroyedCheckingPrototype, |
47 ContextDestroyedCreatingCallbacks, | 47 ContextDestroyedCreatingCallbacks, |
48 ContextDestroyedRegisteringDefinition, | 48 ContextDestroyedRegisteringDefinition, |
| 49 ExtendsIsInvalidName, |
| 50 ExtendsIsCustomElementName, |
49 InvalidName, | 51 InvalidName, |
50 NotYetImplemented, | |
51 PrototypeDoesNotExtendHTMLElementSVGElementNamespace, | |
52 PrototypeDoesNotExtendHTMLElementSVGElementPrototype, | |
53 PrototypeInUse, | 52 PrototypeInUse, |
54 PrototypeNotAnObject, | 53 PrototypeNotAnObject, |
55 TypeAlreadyRegistered | 54 TypeAlreadyRegistered |
56 }; | 55 }; |
57 | 56 |
58 static void throwException(Reason, const AtomicString& type, ExceptionState&
); | 57 static void throwException(Reason, const AtomicString& type, ExceptionState&
); |
59 | 58 |
60 private: | 59 private: |
61 CustomElementException(); | 60 CustomElementException(); |
62 | 61 |
63 static String preamble(const AtomicString& type); | 62 static String preamble(const AtomicString& type); |
64 }; | 63 }; |
65 | 64 |
66 } | 65 } |
67 | 66 |
68 #endif // CustomElementException_h | 67 #endif // CustomElementException_h |
OLD | NEW |