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, 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.