mshtml: Added IHTMLInputTextElement2::selectionEnd property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
03febf448e
commit
aebefe17bf
|
@ -1296,15 +1296,34 @@ static HRESULT WINAPI HTMLInputTextElement2_get_selectionStart(IHTMLInputTextEle
|
||||||
static HRESULT WINAPI HTMLInputTextElement2_put_selectionEnd(IHTMLInputTextElement2 *iface, LONG v)
|
static HRESULT WINAPI HTMLInputTextElement2_put_selectionEnd(IHTMLInputTextElement2 *iface, LONG v)
|
||||||
{
|
{
|
||||||
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
|
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
|
||||||
FIXME("(%p)->(%d)\n", This, v);
|
nsresult nsres;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p)->(%d)\n", This, v);
|
||||||
|
|
||||||
|
nsres = nsIDOMHTMLInputElement_SetSelectionEnd(This->nsinput, v);
|
||||||
|
if(NS_FAILED(nsres)) {
|
||||||
|
ERR("SetSelectionEnd failed: %08x\n", nsres);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLInputTextElement2_get_selectionEnd(IHTMLInputTextElement2 *iface, LONG *p)
|
static HRESULT WINAPI HTMLInputTextElement2_get_selectionEnd(IHTMLInputTextElement2 *iface, LONG *p)
|
||||||
{
|
{
|
||||||
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
|
HTMLInputElement *This = impl_from_IHTMLInputTextElement2(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
INT32 selection_end;
|
||||||
return E_NOTIMPL;
|
nsresult nsres;
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
nsres = nsIDOMHTMLInputElement_GetSelectionEnd(This->nsinput, &selection_end);
|
||||||
|
if(NS_FAILED(nsres)) {
|
||||||
|
ERR("GetSelectionEnd failed: %08x\n", nsres);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
*p = selection_end;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLInputTextElement2_setSelectionRange(IHTMLInputTextElement2 *iface, LONG start, LONG end)
|
static HRESULT WINAPI HTMLInputTextElement2_setSelectionRange(IHTMLInputTextElement2 *iface, LONG start, LONG end)
|
||||||
|
|
Loading…
Reference in New Issue