diff options
author | Leon Scroggins <scroggo@google.com> | 2010-01-05 10:56:57 -0500 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2010-01-06 10:14:48 -0500 |
commit | 62d9c8e597ebe68adce93008597730a41a1d716b (patch) | |
tree | 9b1a4b3a07b4c002b48cbce870ebcf902d0ea683 /WebKit/android/nav/CachedInput.h | |
parent | 3bacb88ba1ca0b7bbce5b16b832cc5acd411e1f9 (diff) | |
download | external_webkit-62d9c8e597ebe68adce93008597730a41a1d716b.zip external_webkit-62d9c8e597ebe68adce93008597730a41a1d716b.tar.gz external_webkit-62d9c8e597ebe68adce93008597730a41a1d716b.tar.bz2 |
Store label information to be used for hint text.
Fix for http://b/issue?id=2331526
Requires a change to frameworks/base.
Diffstat (limited to 'WebKit/android/nav/CachedInput.h')
-rw-r--r-- | WebKit/android/nav/CachedInput.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/nav/CachedInput.h b/WebKit/android/nav/CachedInput.h index f3cf1fe..a75efe4 100644 --- a/WebKit/android/nav/CachedInput.h +++ b/WebKit/android/nav/CachedInput.h @@ -41,12 +41,14 @@ public: void* formPointer() const { return mForm; } void init() { bzero(this, sizeof(CachedInput)); + mLabel = WebCore::String(); mName = WebCore::String(); } WebCore::HTMLInputElement::InputType inputType() const { return mInputType; } bool isReadOnly() const { return mIsReadOnly; } bool isRtlText() const { return mIsRtlText; } bool isTextField() const { return mIsTextField; } + const WebCore::String& label() const { return mLabel; } int maxLength() const { return mMaxLength; }; const WebCore::String& name() const { return mName; } void setFormPointer(void* form) { mForm = form; } @@ -54,12 +56,14 @@ public: void setIsReadOnly(bool isReadOnly) { mIsReadOnly = isReadOnly; } void setIsRtlText(bool isRtlText) { mIsRtlText = isRtlText; } void setIsTextField(bool isTextField) { mIsTextField = isTextField; } + void setLabel(const WebCore::String& label) { mLabel = label; } void setMaxLength(int maxLength) { mMaxLength = maxLength; } void setName(const WebCore::String& name) { mName = name; } void setTextSize(int textSize) { mTextSize = textSize; } int textSize() const { return mTextSize; } private: void* mForm; + WebCore::String mLabel; WebCore::String mName; int mMaxLength; int mTextSize; |