if (input->isTextField()) {
type = TEXT_INPUT_CACHEDNODETYPE;
cachedInput.init();
+ cachedInput.setAutoComplete(input->autoComplete());
cachedInput.setFormPointer(input->form());
cachedInput.setIsTextField(true);
exported = input->value().threadsafeCopy();
void CachedInput::Debug::print() const
{
CachedInput* b = base();
+ DEBUG_PRINT_BOOL(mAutoComplete);
DUMP_NAV_LOGD("// void* mForm=%p;\n", b->mForm);
printWebCoreString("// char* mName=\"", b->mName);
DUMP_NAV_LOGD("// int mMaxLength=%d;\n", b->mMaxLength);
URL = 7
};
+ bool autoComplete() const { return mAutoComplete; }
void* formPointer() const { return mForm; }
void init();
void setTypeFromElement(WebCore::HTMLInputElement*);
int paddingLeft() const { return mPaddingLeft; }
int paddingRight() const { return mPaddingRight; }
int paddingTop() const { return mPaddingTop; }
+ void setAutoComplete(bool autoComplete) { mAutoComplete = autoComplete; }
void setFormPointer(void* form) { mForm = form; }
void setIsRtlText(bool isRtlText) { mIsRtlText = isRtlText; }
void setIsTextField(bool isTextField) { mIsTextField = isTextField; }
int mPaddingTop;
float mTextSize;
Type mType;
+ bool mAutoComplete : 1;
bool mIsRtlText : 1;
bool mIsTextField : 1;
bool mIsTextArea : 1;
return input ? input->maxLength() : false;
}
+static jint nativeFocusCandidateIsAutoComplete(JNIEnv *env, jobject obj)
+{
+ const CachedInput* input = getInputCandidate(env, obj);
+ return input ? input->autoComplete() : false;
+}
+
static jobject nativeFocusCandidateName(JNIEnv *env, jobject obj)
{
const CachedInput* input = getInputCandidate(env, obj);
(void*) nativeFocusCandidateLineHeight },
{ "nativeFocusCandidateMaxLength", "()I",
(void*) nativeFocusCandidateMaxLength },
+ { "nativeFocusCandidateIsAutoComplete", "()Z",
+ (void*) nativeFocusCandidateIsAutoComplete },
{ "nativeFocusCandidateName", "()Ljava/lang/String;",
(void*) nativeFocusCandidateName },
{ "nativeFocusCandidateNodeBounds", "()Landroid/graphics/Rect;",