summaryrefslogtreecommitdiffstats
path: root/WebCore/html/InputType.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/InputType.h')
-rw-r--r--WebCore/html/InputType.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/html/InputType.h b/WebCore/html/InputType.h
index f1a5b6d..f275ae8 100644
--- a/WebCore/html/InputType.h
+++ b/WebCore/html/InputType.h
@@ -60,6 +60,7 @@ public:
virtual bool isTextField() const;
virtual bool isTextType() const;
+ virtual bool isRangeControl() const;
virtual const AtomicString& formControlType() const = 0;
// Form value functions
@@ -89,6 +90,7 @@ public:
virtual bool patternMismatch(const String&) const;
virtual bool rangeUnderflow(const String&) const;
virtual bool rangeOverflow(const String&) const;
+ virtual double defaultValueForStepUp() const;
virtual double minimum() const;
virtual double maximum() const;
virtual bool stepMismatch(const String&, double) const;
@@ -100,6 +102,7 @@ public:
virtual bool scaledStepValeuShouldBeInteger() const;
virtual double acceptableError(double) const;
virtual String typeMismatchText() const;
+ virtual String valueMissingText() const;
// Event handlers
// If the return value is true, do no further default event handling in the
@@ -109,6 +112,10 @@ public:
virtual bool handleClickEvent(MouseEvent*);
virtual bool handleDOMActivateEvent(Event*);
virtual bool handleKeydownEvent(KeyboardEvent*);
+ virtual bool handleKeypressEvent(KeyboardEvent*);
+ virtual bool handleKeyupEvent(KeyboardEvent*);
+ // A helper for event handlers.
+ virtual bool shouldSubmitImplicitly(Event*);
// Miscellaneous functions
@@ -136,6 +143,7 @@ public:
protected:
InputType(HTMLInputElement* element) : m_element(element) { }
HTMLInputElement* element() const { return m_element; }
+ void dispatchSimulatedClickIfActive(KeyboardEvent*) const;
// We can't make this a static const data member because VC++ doesn't like it.
static double defaultStepBase() { return 0.0; }