diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 00:37:20 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 00:37:20 +0000 |
commit | fad84eab5e64996804824f2c7b8fce98da13b2cd (patch) | |
tree | 2fce4e91880f94c3e94687e9c0521586c37fa916 /chrome/test/automation/automation_proxy.h | |
parent | 792e3c941a74c48db7454a945260a0e8b288ffce (diff) | |
download | chromium_src-fad84eab5e64996804824f2c7b8fce98da13b2cd.zip chromium_src-fad84eab5e64996804824f2c7b8fce98da13b2cd.tar.gz chromium_src-fad84eab5e64996804824f2c7b8fce98da13b2cd.tar.bz2 |
Adding the capacity to interact with modal dialogs to the automation framework.
This change will be used by Ojan to implement some unload handler tests.
TEST=Run the ui tests.
Review URL: http://codereview.chromium.org/13113
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_proxy.h')
-rw-r--r-- | chrome/test/automation/automation_proxy.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h index 5621b011..0c147fa 100644 --- a/chrome/test/automation/automation_proxy.h +++ b/chrome/test/automation/automation_proxy.h @@ -14,6 +14,7 @@ #include "chrome/common/ipc_message.h" #include "chrome/test/automation/automation_handle_tracker.h" #include "chrome/test/automation/automation_messages.h" +#include "chrome/views/dialog_delegate.h" class AutomationRequest; class BrowserProxy; @@ -109,8 +110,12 @@ class AutomationProxy : public IPC::Channel::Listener, 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); + // javascript alert), and what buttons it contains. + bool GetShowingAppModalDialog(bool* showing_app_modal_dialog, + views::DialogDelegate::DialogButton* button); + + // Simulates a click on a dialog button. + bool ClickAppModalDialogButton(views::DialogDelegate::DialogButton button); // Block the thread until a modal dialog is displayed. Returns true on // success. |