Add support for modal dialogs (issue #250).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@255 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-06-14 15:09:55 +00:00
parent d757adb020
commit 02d6f3e384
20 changed files with 434 additions and 23 deletions

View File

@ -560,6 +560,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
if (browser.get())
browser->CloseDevTools();
return 0;
case ID_TESTS_MODALDIALOG:
if(browser.get())
RunModalDialogTest(browser);
return 0;
}
}
break;
@ -606,6 +610,18 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
return 0;
}
break;
case WM_CLOSE:
// All clients must forward the WM_CLOSE call to all contained browser
// windows to give those windows a chance to cleanup before the window
// closes. Don't forward this message if you are cancelling the request.
if(g_handler.get())
{
HWND hWnd = g_handler->GetBrowserHwnd();
if (hWnd)
::SendMessage(hWnd, WM_CLOSE, 0, 0);
}
break;
case WM_DESTROY:
// The frame window has exited