mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Improve menu responsiveness (issue #194).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@950 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -148,6 +148,15 @@ bool CefBrowserImpl::IsWindowRenderingDisabled() {
|
||||
return (window_info_.m_bWindowRenderingDisabled ? true : false);
|
||||
}
|
||||
|
||||
void CefBrowserImpl::SetOSModalLoop(bool osModalLoop) {
|
||||
if (CefThread::CurrentlyOn(CefThread::UI)) {
|
||||
MessageLoop::current()->set_os_modal_loop(osModalLoop);
|
||||
} else {
|
||||
CefThread::PostTask(CefThread::UI, FROM_HERE,
|
||||
base::Bind(&CefBrowserImpl::SetOSModalLoop, this, osModalLoop));
|
||||
}
|
||||
}
|
||||
|
||||
gfx::NativeWindow CefBrowserImpl::UIT_GetMainWndHandle() {
|
||||
REQUIRE_UIT();
|
||||
return window_info_.m_bWindowRenderingDisabled ?
|
||||
|
Reference in New Issue
Block a user