#ifndef AutofillManager_h
#define AutofillManager_h
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WTF {
class String;
}
namespace BlackBerry {
namespace WebKit {
class WebPagePrivate;
}
}
namespace WebCore {
class HTMLFormElement;
class HTMLInputElement;
class AutofillManager : public RefCounted<AutofillManager> {
public:
static PassRefPtr<AutofillManager> create(BlackBerry::WebKit::WebPagePrivate*);
void didChangeInTextField(HTMLInputElement*);
void textFieldDidEndEditing(HTMLInputElement*);
void autofillTextField(const WTF::String&);
void saveTextFields(HTMLFormElement*);
static void clear();
private:
AutofillManager(BlackBerry::WebKit::WebPagePrivate* page) : m_webPagePrivate(page), m_element(0) { }
BlackBerry::WebKit::WebPagePrivate* m_webPagePrivate;
HTMLInputElement* m_element;
};
}
#endif // AutofillManager_h