diff options
Diffstat (limited to 'chrome/test/automation/automation_proxy.h')
-rw-r--r-- | chrome/test/automation/automation_proxy.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h index 9b052a8..e9d55d1 100644 --- a/chrome/test/automation/automation_proxy.h +++ b/chrome/test/automation/automation_proxy.h @@ -16,10 +16,14 @@ #include "chrome/common/ipc_channel_proxy.h" #include "chrome/common/ipc_message.h" #include "chrome/common/ipc_sync_channel.h" -#include "chrome/common/message_box_flags.h" #include "chrome/test/automation/automation_handle_tracker.h" #include "chrome/test/automation/automation_messages.h" +#if defined(OS_WIN) +// TODO(port): Enable this or equivalent. +#include "chrome/views/window/dialog_delegate.h" +#endif + class AutomationRequest; class BrowserProxy; class TabProxy; @@ -94,13 +98,17 @@ class AutomationProxy : public IPC::Channel::Listener, // Returns true on success. bool WaitForWindowCountToBecome(int target_count, int wait_timeout); +#if defined(OS_WIN) + // TODO(port): Enable when we have portable DialogDelegate. + // Returns whether an app modal dialog window is showing right now (i.e., a // javascript alert), and what buttons it contains. bool GetShowingAppModalDialog(bool* showing_app_modal_dialog, - MessageBox::DialogButton* button); + views::DialogDelegate::DialogButton* button); // Simulates a click on a dialog button. - bool ClickAppModalDialogButton(MessageBox::DialogButton button); + bool ClickAppModalDialogButton(views::DialogDelegate::DialogButton button); +#endif // defined(OS_WIN) // Block the thread until a modal dialog is displayed. Returns true on // success. |