Fix problem calling CefBrowser::SetFocus() from a non-UI thread (issue #320).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@335 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
561bb6956b
commit
fb2eb5f4b5
|
@ -234,7 +234,7 @@ void CefBrowserImpl::SetFocus(bool enable)
|
||||||
UIT_SetFocus(UIT_GetWebViewHost(), enable);
|
UIT_SetFocus(UIT_GetWebViewHost(), enable);
|
||||||
} else {
|
} else {
|
||||||
CefThread::PostTask(CefThread::UI, FROM_HERE, NewRunnableMethod(this,
|
CefThread::PostTask(CefThread::UI, FROM_HERE, NewRunnableMethod(this,
|
||||||
&CefBrowserImpl::UIT_SetFocus, UIT_GetWebViewHost(), enable));
|
&CefBrowserImpl::SetFocus, enable));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue