Windows: Change CefBrowser::SetOSModalLoop to CefSetOSModalLoop because the functionality is not connected with any particular browser (issue #194).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1062 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-01-28 18:48:54 +00:00
parent f39b3d7f90
commit 2344b20e38
14 changed files with 50 additions and 60 deletions

View File

@@ -610,16 +610,16 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
break;
case WM_ENTERMENULOOP:
if (!wParam && g_handler.get() && g_handler->GetBrowserHwnd()) {
if (!wParam) {
// Entering the menu loop for the application menu.
g_handler->GetBrowser()->SetOSModalLoop(true);
CefSetOSModalLoop(true);
}
break;
case WM_EXITMENULOOP:
if (!wParam && g_handler.get() && g_handler->GetBrowserHwnd()) {
if (!wParam) {
// Exiting the menu loop for the application menu.
g_handler->GetBrowser()->SetOSModalLoop(false);
CefSetOSModalLoop(false);
}
break;