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

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

Issue 23717043: Implement Custom Elements 'extends' option. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8PerContextData.cpp ('k') | Source/core/dom/CustomElementException.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8PerContextData.cpp ('k') | Source/core/dom/CustomElementException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698