Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Unified Diff: chrome/test/automation/window_proxy.cc

Issue 211033: Automated ui test porting + cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: all green\! Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/automation/window_proxy.cc
===================================================================
--- chrome/test/automation/window_proxy.cc (revision 26702)
+++ chrome/test/automation/window_proxy.cc (working copy)
@@ -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 @@
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 @@
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;
+}
« chrome/test/automation/browser_proxy.h ('K') | « chrome/test/automation/window_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698