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.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h
index e9d55d1..5c2cb22 100644
--- a/chrome/test/automation/automation_proxy.h
+++ b/chrome/test/automation/automation_proxy.h
@@ -16,14 +16,10 @@
#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;
@@ -98,17 +94,13 @@ 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,
- views::DialogDelegate::DialogButton* button);
+ MessageBoxFlags::DialogButton* button);
// Simulates a click on a dialog button.
- bool ClickAppModalDialogButton(views::DialogDelegate::DialogButton button);
-#endif // defined(OS_WIN)
+ bool ClickAppModalDialogButton(MessageBoxFlags::DialogButton button);
// Block the thread until a modal dialog is displayed. Returns true on
// success.