summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/window_proxy.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 19:57:24 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 19:57:24 +0000
commit8dd404bbb05b99e7ee13b4e70899ebbcaeb3e8fb (patch)
tree0e4b5ba4be534f7e769db542d0882d6983fcb59a /chrome/test/automation/window_proxy.cc
parent24f4035eb84f25a51bf7ed6696671c99bf89bb25 (diff)
downloadchromium_src-8dd404bbb05b99e7ee13b4e70899ebbcaeb3e8fb.zip
chromium_src-8dd404bbb05b99e7ee13b4e70899ebbcaeb3e8fb.tar.gz
chromium_src-8dd404bbb05b99e7ee13b4e70899ebbcaeb3e8fb.tar.bz2
Automated ui test porting + cleanup:
- Change POINTs to gfx::Point - Get rid of 2 unused automation messages (the messages themselves are staying for now so we don't mess with the reference build) -- add new automation messages to replace GetWindowHWND, which is not portable - re-enable automated_ui_test_interactive_test (it seems to have been dropped when we converted to gyp) - compile additional tests on linux (they don't pass, so they are disabled) - stub out linux tab dragging automation implementation (browser side) - delete various cruft BUG=19758 Review URL: http://codereview.chromium.org/211033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/window_proxy.cc')
-rw-r--r--chrome/test/automation/window_proxy.cc33
1 files changed, 20 insertions, 13 deletions
diff --git a/chrome/test/automation/window_proxy.cc b/chrome/test/automation/window_proxy.cc
index cb672d3..5766259 100644
--- a/chrome/test/automation/window_proxy.cc
+++ b/chrome/test/automation/window_proxy.cc
@@ -16,19 +16,6 @@
#include "chrome/test/automation/tab_proxy.h"
#include "googleurl/src/gurl.h"
-#if defined(OS_WIN)
-bool WindowProxy::GetHWND(HWND* handle) const {
- if (!is_valid()) return false;
-
- if (!handle) {
- NOTREACHED();
- return false;
- }
-
- return sender_->Send(new AutomationMsg_WindowHWND(0, handle_, handle));
-}
-#endif // defined(OS_WIN)
-
bool WindowProxy::SimulateOSClick(const gfx::Point& click, int flags) {
if (!is_valid()) return false;
@@ -106,6 +93,15 @@ bool WindowProxy::GetViewBoundsWithTimeout(int view_id, gfx::Rect* bounds,
return result;
}
+bool WindowProxy::GetBounds(gfx::Rect* bounds) {
+ if (!is_valid())
+ return false;
+ bool result = false;
+ sender_->Send(new AutomationMsg_GetWindowBounds(0, handle_, bounds,
+ &result));
+ return result;
+}
+
bool WindowProxy::SetBounds(const gfx::Rect& bounds) {
if (!is_valid())
return false;
@@ -156,3 +152,14 @@ scoped_refptr<BrowserProxy> WindowProxy::GetBrowserWithTimeout(
result.swap(&browser);
return result;
}
+
+bool WindowProxy::IsMaximized(bool* maximized) {
+ if (!is_valid())
+ return false;
+
+ bool result = false;
+
+ sender_->Send(new AutomationMsg_IsWindowMaximized(0, handle_, maximized,
+ &result));
+ return result;
+}