diff options
Diffstat (limited to 'WebCore/html/HTMLButtonElement.h')
-rw-r--r-- | WebCore/html/HTMLButtonElement.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/WebCore/html/HTMLButtonElement.h b/WebCore/html/HTMLButtonElement.h index 92951c3..aefb27a 100644 --- a/WebCore/html/HTMLButtonElement.h +++ b/WebCore/html/HTMLButtonElement.h @@ -2,7 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -30,8 +30,18 @@ namespace WebCore { class HTMLButtonElement : public HTMLFormControlElement { public: - HTMLButtonElement(const QualifiedName&, Document*, HTMLFormElement* = 0); - virtual ~HTMLButtonElement(); + static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*); + + String accessKey() const; + void setAccessKey(const String&); + + String value() const; + void setValue(const String&); + +private: + HTMLButtonElement(const QualifiedName& tagName, Document*, HTMLFormElement*); + + enum Type { SUBMIT, RESET, BUTTON }; virtual const AtomicString& formControlType() const; @@ -51,14 +61,6 @@ public: virtual bool canStartSelection() const { return false; } - String accessKey() const; - void setAccessKey(const String&); - - String value() const; - void setValue(const String&); - -private: - enum Type { SUBMIT, RESET, BUTTON }; virtual bool isOptionalFormControl() const { return true; } virtual bool recalcWillValidate() const { return false; } |