Add ClearSelection for msw ie and gtk webkit, with a stub for osx webkit. Document and add to unit tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -655,6 +655,20 @@ wxString wxWebViewIE::GetSelectedSource()
|
||||
return selected;
|
||||
}
|
||||
|
||||
void wxWebViewIE::ClearSelection()
|
||||
{
|
||||
IHTMLDocument2* document = GetDocument();
|
||||
IHTMLSelectionObject* selection;
|
||||
wxString selected;
|
||||
HRESULT hr = document->get_selection(&selection);
|
||||
if(SUCCEEDED(hr))
|
||||
{
|
||||
selection->empty();
|
||||
selection->Release();
|
||||
}
|
||||
document->Release();
|
||||
}
|
||||
|
||||
wxString wxWebViewIE::GetPageText()
|
||||
{
|
||||
IHTMLDocument2* document = GetDocument();
|
||||
|
||||
Reference in New Issue
Block a user