summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedInput.h
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-12-07 16:54:56 -0500
committerLeon Scroggins <scroggo@google.com>2009-12-08 10:50:02 -0500
commit91a3bec8a1f1a64c6e1ca755766988b4fd6bf41a (patch)
treefe5a649975b0e3773a18da1c67f2317c1d1842c8 /WebKit/android/nav/CachedInput.h
parent44c05fb68509c9d10a2e780c05a77a4d9f78124f (diff)
downloadexternal_webkit-91a3bec8a1f1a64c6e1ca755766988b4fd6bf41a.zip
external_webkit-91a3bec8a1f1a64c6e1ca755766988b4fd6bf41a.tar.gz
external_webkit-91a3bec8a1f1a64c6e1ca755766988b4fd6bf41a.tar.bz2
Show "Go" for the last textfield in a form.
Fixes http://b/issue?id=2210152
Diffstat (limited to 'WebKit/android/nav/CachedInput.h')
-rw-r--r--WebKit/android/nav/CachedInput.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/android/nav/CachedInput.h b/WebKit/android/nav/CachedInput.h
index f4f0e95..f3cf1fe 100644
--- a/WebKit/android/nav/CachedInput.h
+++ b/WebKit/android/nav/CachedInput.h
@@ -38,6 +38,7 @@ public:
// Initiaized to 0 in its array, so nothing to do in the
// constructor
}
+ void* formPointer() const { return mForm; }
void init() {
bzero(this, sizeof(CachedInput));
mName = WebCore::String();
@@ -48,6 +49,7 @@ public:
bool isTextField() const { return mIsTextField; }
int maxLength() const { return mMaxLength; };
const WebCore::String& name() const { return mName; }
+ void setFormPointer(void* form) { mForm = form; }
void setInputType(WebCore::HTMLInputElement::InputType type) { mInputType = type; }
void setIsReadOnly(bool isReadOnly) { mIsReadOnly = isReadOnly; }
void setIsRtlText(bool isRtlText) { mIsRtlText = isRtlText; }
@@ -57,6 +59,7 @@ public:
void setTextSize(int textSize) { mTextSize = textSize; }
int textSize() const { return mTextSize; }
private:
+ void* mForm;
WebCore::String mName;
int mMaxLength;
int mTextSize;