Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3228)

Unified Diff: chrome/test/automation/automation_proxy.h

Issue 99268: Making CloseWindow and CloseTab automation API... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/automation/automation_proxy.h
===================================================================
--- chrome/test/automation/automation_proxy.h (revision 14951)
+++ chrome/test/automation/automation_proxy.h (working copy)
@@ -94,6 +94,11 @@
// Returns true on success.
bool WaitForWindowCountToBecome(int target_count, int wait_timeout);
+ // Fills the number of open normal browser windows (normal type and
+ // non-incognito mode) into the given variable, returning true on success.
+ // False likely indicates an IPC error.
+ bool GetNormalBrowserWindowCount(int* num_windows);
+
// Returns whether an app modal dialog window is showing right now (i.e., a
// javascript alert), and what buttons it contains.
bool GetShowingAppModalDialog(bool* showing_app_modal_dialog,
@@ -118,6 +123,12 @@
// Window numbers are 0-based.
BrowserProxy* GetBrowserWindow(int window_index);
+ // Finds the first browser window that is not incognito mode and of type
+ // TYPE_NORMAL, and returns its corresponding BrowserProxy, transferring
+ // ownership of the pointer to the caller.
+ // On failure, returns NULL.
+ BrowserProxy* FindNormalBrowserWindow();
+
// Returns the BrowserProxy for the browser window which was last active,
// transferring ownership of the pointer to the caller.
// TODO: If there was no last active browser window, or the last active

Powered by Google App Engine
This is Rietveld 408576698