summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/automation_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/automation_proxy.h')
-rw-r--r--chrome/test/automation/automation_proxy.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h
index 8491832..5621b011 100644
--- a/chrome/test/automation/automation_proxy.h
+++ b/chrome/test/automation/automation_proxy.h
@@ -108,6 +108,14 @@ class AutomationProxy : public IPC::Channel::Listener,
// Returns true on success.
bool WaitForWindowCountToBecome(int target_count, int wait_timeout);
+ // Returns whether an app modal dialog window is showing right now (i.e., a
+ // javascript alert).
+ bool GetShowingAppModalDialog(bool* showing_app_modal_dialog);
+
+ // Block the thread until a modal dialog is displayed. Returns true on
+ // success.
+ bool WaitForAppModalDialog(int wait_timeout);
+
// Returns the BrowserProxy for the browser window at the given index,
// transferring ownership of the pointer to the caller.
// On failure, returns NULL.
@@ -217,4 +225,3 @@ class AutomationProxy : public IPC::Channel::Listener,
};
#endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__
-