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

Side by Side Diff: Source/core/dom/custom/CustomElementException.h

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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) 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef CustomElementException_h 31 #ifndef CustomElementException_h
32 #define CustomElementException_h 32 #define CustomElementException_h
33 33
34 #include "wtf/Allocator.h"
34 #include "wtf/text/AtomicString.h" 35 #include "wtf/text/AtomicString.h"
35 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
36 37
37 namespace blink { 38 namespace blink {
38 39
39 class ExceptionState; 40 class ExceptionState;
40 41
41 class CustomElementException { 42 class CustomElementException {
43 STATIC_ONLY(CustomElementException);
42 public: 44 public:
43 enum Reason { 45 enum Reason {
44 CannotRegisterFromExtension, 46 CannotRegisterFromExtension,
45 ConstructorPropertyNotConfigurable, 47 ConstructorPropertyNotConfigurable,
46 ContextDestroyedCheckingPrototype, 48 ContextDestroyedCheckingPrototype,
47 ContextDestroyedCreatingCallbacks, 49 ContextDestroyedCreatingCallbacks,
48 ContextDestroyedRegisteringDefinition, 50 ContextDestroyedRegisteringDefinition,
49 ExtendsIsInvalidName, 51 ExtendsIsInvalidName,
50 ExtendsIsCustomElementName, 52 ExtendsIsCustomElementName,
51 InvalidName, 53 InvalidName,
52 PrototypeInUse, 54 PrototypeInUse,
53 TypeAlreadyRegistered 55 TypeAlreadyRegistered
54 }; 56 };
55 57
56 static void throwException(Reason, const AtomicString& type, ExceptionState& ); 58 static void throwException(Reason, const AtomicString& type, ExceptionState& );
57 59
58 private: 60 private:
59 CustomElementException();
60
61 static String preamble(const AtomicString& type); 61 static String preamble(const AtomicString& type);
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // CustomElementException_h 66 #endif // CustomElementException_h
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementDescriptorHash.h ('k') | Source/core/dom/custom/CustomElementMicrotaskDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698