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

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

Issue 10282: Only block alert() requests from blocked popups; not all popups.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 5108)
+++ chrome/test/automation/automation_proxy.h (working copy)
@@ -108,6 +108,14 @@
// 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 @@
};
#endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__
-

Powered by Google App Engine
This is Rietveld 408576698