| 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;
|
| +}
|
|
|