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 |