summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 02:57:55 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 02:57:55 +0000
commitf83b6736a3d555987680243662698571d875875e (patch)
tree26ab8aa0e9c92f683bbc02190a900da4b3643eb0 /webkit/tools/test_shell/test_shell.cc
parent416634b04ddba855a8d41ee234a691b462270b25 (diff)
downloadchromium_src-f83b6736a3d555987680243662698571d875875e.zip
chromium_src-f83b6736a3d555987680243662698571d875875e.tar.gz
chromium_src-f83b6736a3d555987680243662698571d875875e.tar.bz2
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
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rw-r--r--webkit/tools/test_shell/test_shell.cc16
1 files changed, 15 insertions, 1 deletions
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);
}