summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLInputElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/wml/WMLInputElement.h')
-rw-r--r--WebCore/wml/WMLInputElement.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/WebCore/wml/WMLInputElement.h b/WebCore/wml/WMLInputElement.h
index 2b913df..a2c904f 100644
--- a/WebCore/wml/WMLInputElement.h
+++ b/WebCore/wml/WMLInputElement.h
@@ -43,6 +43,7 @@ public:
virtual bool shouldUseInputMethod() const { return !m_isPasswordField; }
virtual bool isChecked() const { return false; }
+ virtual bool isAutofilled() const { return false; }
virtual bool isIndeterminate() const { return false; }
virtual bool isTextControl() const { return true; }
virtual bool isRadioButton() const { return false; }
@@ -86,9 +87,19 @@ public:
virtual void willMoveToNewOwnerDocument();
virtual void didMoveToNewOwnerDocument();
+ bool isConformedToInputMask(const String&);
+ bool isConformedToInputMask(UChar, unsigned, bool isUserInput = true);
+
private:
+ void init();
+ String validateInputMask(const String&);
+ unsigned cursorPositionToMaskIndex(unsigned);
+
InputElementData m_data;
bool m_isPasswordField;
+ bool m_isEmptyOk;
+ String m_formatMask;
+ unsigned m_numOfCharsAllowedByMask;
};
}