summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/window_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/window_proxy.cc')
-rw-r--r--chrome/test/automation/window_proxy.cc34
1 files changed, 0 insertions, 34 deletions
diff --git a/chrome/test/automation/window_proxy.cc b/chrome/test/automation/window_proxy.cc
index 4875300..295f05b 100644
--- a/chrome/test/automation/window_proxy.cc
+++ b/chrome/test/automation/window_proxy.cc
@@ -8,7 +8,6 @@
#include <algorithm>
#include "base/logging.h"
-#include "base/time.h"
#include "chrome/test/automation/automation_constants.h"
#include "chrome/test/automation/automation_messages.h"
#include "chrome/test/automation/automation_proxy.h"
@@ -17,9 +16,6 @@
#include "gfx/rect.h"
#include "googleurl/src/gurl.h"
-using base::TimeDelta;
-using base::TimeTicks;
-
bool WindowProxy::SimulateOSClick(const gfx::Point& click, int flags) {
if (!is_valid()) return false;
@@ -127,14 +123,6 @@ bool WindowProxy::GetFocusedViewID(int* view_id) {
view_id));
}
-bool WindowProxy::WaitForFocusedViewIDToChange(
- int old_view_id, int* new_view_id) {
- bool result = false;
- sender_->Send(new AutomationMsg_WaitForFocusedViewIDToChange
- (0, handle_, old_view_id, &result, new_view_id));
- return result;
-}
-
scoped_refptr<BrowserProxy> WindowProxy::GetBrowser() {
return GetBrowserWithTimeout(base::kNoTimeout, NULL);
}
@@ -175,25 +163,3 @@ bool WindowProxy::IsMaximized(bool* maximized) {
&result));
return result;
}
-
-bool WindowProxy::WaitForPopupMenuOpen(uint32 timeout_ms) {
- const TimeTicks start = TimeTicks::Now();
- const TimeDelta timeout = TimeDelta::FromMilliseconds(timeout_ms);
- while (TimeTicks::Now() - start < timeout) {
- PlatformThread::Sleep(automation::kSleepTime);
-
- bool is_open = false;
- bool success = false;
- bool is_timeout = false;
- sender_->SendWithTimeout(new AutomationMsg_IsPopUpMenuOpen(
- 0, handle_, &success, &is_open),
- timeout_ms, &is_timeout);
- if (!success)
- return false;
- if (is_timeout)
- return false;
- if (is_open)
- return true;
- }
- return false;
-}