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_messages_internal.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_messages_internal.h')
-rw-r--r-- | chrome/test/automation/automation_messages_internal.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h index b71457d..165b606 100644 --- a/chrome/test/automation/automation_messages_internal.h +++ b/chrome/test/automation/automation_messages_internal.h @@ -802,14 +802,23 @@ IPC_BEGIN_MESSAGES(Automation, 0) bool /* success */) // Queries whether an app modal dialog is currently being shown. (i.e. a - // javascript alert). + // javascript alert) and which buttons it contains. IPC_MESSAGE_ROUTED0(AutomationMsg_ShowingAppModalDialogRequest) - IPC_MESSAGE_ROUTED1(AutomationMsg_ShowingAppModalDialogResponse, - bool /* showing dialog */) + IPC_MESSAGE_ROUTED2(AutomationMsg_ShowingAppModalDialogResponse, + bool /* showing dialog */, + int /* view::DelegateDialog::DialogButton */) // Returns the ordinal and the number of matches found as a response to // a AutomationMsg_FindRequest. IPC_MESSAGE_ROUTED2(AutomationMsg_FindInPageResponse2, int /* active_ordinal */, int /* matches_found */) + + // This message triggers the specified button for the currently showing + // modal dialog. + IPC_MESSAGE_ROUTED1(AutomationMsg_ClickAppModalDialogButtonRequest, + int /* view::DelegateDialog::DialogButton */) + IPC_MESSAGE_ROUTED1(AutomationMsg_ClickAppModalDialogButtonResponse, + bool /* success */) + IPC_END_MESSAGES(Automation) |