summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedInput.h
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-12-04 14:54:57 -0500
committerLeon Scroggins <scroggo@google.com>2009-12-07 10:21:48 -0500
commitdcbb033aafed2abc472f0d88520869a6b1f1945b (patch)
tree41e7c1004df4666a62ea5ea7d2b1d89547b19440 /WebKit/android/nav/CachedInput.h
parent462daf4b80f6d97c9d1f2b446c7fd61a35c49a59 (diff)
downloadexternal_webkit-dcbb033aafed2abc472f0d88520869a6b1f1945b.zip
external_webkit-dcbb033aafed2abc472f0d88520869a6b1f1945b.tar.gz
external_webkit-dcbb033aafed2abc472f0d88520869a6b1f1945b.tar.bz2
Store InputType information for <input> fields, return SEARCH action for SEARCH <input>
Fixes http://b/issue?id=2299660 and http://b/issue?id=2299650 Also remove isPassword, which is redundant.
Diffstat (limited to 'WebKit/android/nav/CachedInput.h')
-rw-r--r--WebKit/android/nav/CachedInput.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/WebKit/android/nav/CachedInput.h b/WebKit/android/nav/CachedInput.h
index 3b00b52..f4f0e95 100644
--- a/WebKit/android/nav/CachedInput.h
+++ b/WebKit/android/nav/CachedInput.h
@@ -27,6 +27,7 @@
#define CachedInput_H
#include "CachedDebug.h"
+#include "HTMLInputElement.h"
#include "PlatformString.h"
namespace android {
@@ -41,13 +42,13 @@ public:
bzero(this, sizeof(CachedInput));
mName = WebCore::String();
}
- bool isPassword() const { return mIsPassword; }
+ WebCore::HTMLInputElement::InputType inputType() const { return mInputType; }
bool isReadOnly() const { return mIsReadOnly; }
bool isRtlText() const { return mIsRtlText; }
bool isTextField() const { return mIsTextField; }
int maxLength() const { return mMaxLength; };
const WebCore::String& name() const { return mName; }
- void setIsPassword(bool isPassword) { mIsPassword = isPassword; }
+ void setInputType(WebCore::HTMLInputElement::InputType type) { mInputType = type; }
void setIsReadOnly(bool isReadOnly) { mIsReadOnly = isReadOnly; }
void setIsRtlText(bool isRtlText) { mIsRtlText = isRtlText; }
void setIsTextField(bool isTextField) { mIsTextField = isTextField; }
@@ -59,7 +60,7 @@ private:
WebCore::String mName;
int mMaxLength;
int mTextSize;
- bool mIsPassword : 1;
+ WebCore::HTMLInputElement::InputType mInputType;
bool mIsReadOnly : 1;
bool mIsRtlText : 1;
bool mIsTextField : 1;