Chromium Code Reviews| Index: Source/core/dom/custom/CustomElementResolutionInvocation.h |
| diff --git a/Source/core/dom/custom/CustomElementException.h b/Source/core/dom/custom/CustomElementResolutionInvocation.h |
| similarity index 68% |
| copy from Source/core/dom/custom/CustomElementException.h |
| copy to Source/core/dom/custom/CustomElementResolutionInvocation.h |
| index 30bdb3be98179968f33a016aa009c75c66977d56..99a77103604b51ff0e5436724ab11964c434e608 100644 |
| --- a/Source/core/dom/custom/CustomElementException.h |
| +++ b/Source/core/dom/custom/CustomElementResolutionInvocation.h |
| @@ -28,40 +28,32 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef CustomElementException_h |
| -#define CustomElementException_h |
| +#ifndef CustomElementResolutionInvocation_h |
| +#define CustomElementResolutionInvocation_h |
| +#include "core/dom/custom/CustomElementDescriptor.h" |
| +#include "core/dom/custom/CustomElementInvocation.h" |
| +#include "wtf/PassOwnPtr.h" |
| #include "wtf/text/AtomicString.h" |
| -#include "wtf/text/WTFString.h" |
| namespace WebCore { |
| -class ExceptionState; |
| - |
| -class CustomElementException { |
| +class CustomElementResolutionInvocation : public CustomElementInvocation { |
| + WTF_MAKE_NONCOPYABLE(CustomElementResolutionInvocation); |
| public: |
| - enum Reason { |
| - CannotRegisterFromExtension, |
| - ConstructorPropertyNotConfigurable, |
| - ContextDestroyedCheckingPrototype, |
| - ContextDestroyedCreatingCallbacks, |
| - ContextDestroyedRegisteringDefinition, |
| - ExtendsIsInvalidName, |
| - ExtendsIsCustomElementName, |
| - InvalidName, |
| - PrototypeInUse, |
| - PrototypeNotAnObject, |
| - TypeAlreadyRegistered |
| - }; |
| + static PassOwnPtr<CustomElementResolutionInvocation> createInvocation(const CustomElementDescriptor&); |
| - static void throwException(Reason, const AtomicString& type, ExceptionState&); |
| +protected: |
| + CustomElementResolutionInvocation(const CustomElementDescriptor& descriptor) |
| + : m_descriptor(descriptor) |
| + { } |
| -private: |
| - CustomElementException(); |
| + virtual void dispatch(Element*); |
|
dominicc (has gone to gerrit)
2013/12/13 05:11:16
This needs OVERRIDE.
Hajime Morrita
2013/12/13 07:02:29
Done.
|
| - static String preamble(const AtomicString& type); |
| +private: |
| + CustomElementDescriptor m_descriptor; |
| }; |
| } |
| -#endif // CustomElementException_h |
| +#endif // CustomElementResolutionInvocation_h |