From f83b6736a3d555987680243662698571d875875e Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 7 Nov 2008 02:57:55 +0000 Subject: Implement a gtk test shell function. Pass dom_operations test shell test. Review URL: http://codereview.chromium.org/8230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4956 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/test_shell.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'webkit/tools/test_shell/test_shell.cc') diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index 43e143f..02e7df5 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -225,7 +225,21 @@ void TestShell::ResetWebPreferences() { web_prefs_->allow_scripts_to_close_windows = false; } } - + +// static +bool TestShell::RemoveWindowFromList(gfx::WindowHandle window) { + WindowList::iterator entry = + std::find(TestShell::windowList()->begin(), + TestShell::windowList()->end(), + window); + if (entry != TestShell::windowList()->end()) { + TestShell::windowList()->erase(entry); + return true; + } + + return false; +} + void TestShell::Show(WebView* webview, WindowOpenDisposition disposition) { delegate_->Show(webview, disposition); } -- cgit v1.1