Commit 706a8f92 authored by timothy@apple.com's avatar timothy@apple.com
Browse files

Expose setValueForUser for the COM DOMHTMLInputElement.

<rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript

Reviewed by Dan Bernstein.

* DOMHTMLClasses.cpp:
(DOMHTMLInputElement::setValueForUser):
* Interfaces/DOMHTML.idl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a112fe5a
2009-12-02 Timothy Hatcher <timothy@apple.com>
Expose setValueForUser for the COM DOMHTMLInputElement.
<rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
Reviewed by Dan Bernstein.
* DOMHTMLClasses.cpp:
(DOMHTMLInputElement::setValueForUser):
* Interfaces/DOMHTML.idl:
2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
Not reviewed. Try to fix windows build.
......
......@@ -1225,7 +1225,17 @@ HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setValue(
inputElement->setValue(String((UChar*) value, SysStringLen(value)));
return S_OK;
}
HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setValueForUser(
/* [in] */ BSTR value)
{
ASSERT(m_element);
ASSERT(m_element->hasTagName(inputTag));
HTMLInputElement* inputElement = static_cast<HTMLInputElement*>(m_element);
inputElement->setValueForUser(String(static_cast<UChar*>(value), SysStringLen(value)));
return S_OK;
}
HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::select( void)
{
ASSERT(m_element && m_element->hasTagName(inputTag));
......
......@@ -771,6 +771,11 @@ interface IDOMHTMLInputElement : IDOMElement
*/
HRESULT setValue([in] BSTR value);
/*
- (void)setValueForUser:(NSString *)value;
*/
HRESULT setValueForUser([in] BSTR value);
/*
- (void)blur;
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment