OSDN Git Service

Merge Chromium at r11.0.672.0: Fix autofill
authorKristian Monsen <kristianm@google.com>
Tue, 7 Jun 2011 15:19:24 +0000 (16:19 +0100)
committerKristian Monsen <kristianm@google.com>
Wed, 8 Jun 2011 14:39:29 +0000 (15:39 +0100)
Major refactoring in CL:
http://codereview.chromium.org/5958021

Created wrapper function to call in chromium CL:
https://android-git.corp.google.com/g/#change,113980

Change-Id: I637b26fb2e3ccb544adfc818b94047ef5a2c5aad

Source/WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp

index a80636c..961497b 100644 (file)
@@ -122,7 +122,7 @@ void WebAutoFill::searchDocument(WebCore::Frame* frame)
 void WebAutoFill::formsSeenImpl()
 {
     MutexLocker lock(mFormsSeenMutex);
-    mAutoFillManager->FormsSeen(mForms);
+    mAutoFillManager->OnFormsSeenWrapper(mForms);
     mParsingForms = false;
     mFormsSeenCondition.signal();
 }
@@ -166,7 +166,7 @@ void WebAutoFill::formFieldFocused(WebCore::HTMLFormControlElement* formFieldEle
     mFormManager->FindFormWithFormControlElement(formFieldElement, FormManager::REQUIRE_AUTOCOMPLETE, form);
     mQueryMap[mQueryId] = new FormDataAndField(form, formField);
 
-    bool suggestions = mAutoFillManager->GetAutoFillSuggestions(*form, *formField);
+    bool suggestions = mAutoFillManager->OnQueryFormFieldAutoFillWrapper(0, *form, *formField); // First param not used on Android
 
     mQueryId++;
     if (!suggestions) {
@@ -207,7 +207,7 @@ void WebAutoFill::fillFormFields(int queryId)
         // but stop here to be certain.
         return;
     }
-    mAutoFillManager->FillAutoFillFormData(queryId, *form, *field, iter->second);
+    mAutoFillManager->OnFillAutoFillFormDataWrapper(queryId, *form, *field, iter->second);
     mUniqueIdMap.erase(iter);
 }