diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 02:37:15 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 02:37:15 +0000 |
commit | 8f04ff93eba6678ed17b7157f805212d9438507b (patch) | |
tree | 75623ea56d3ec9d943242ee48c9ef8d0b7d6cf14 /chrome/test/automation/window_proxy.cc | |
parent | 7b3013e65e46ba705b956ac957f086512dff0677 (diff) | |
download | chromium_src-8f04ff93eba6678ed17b7157f805212d9438507b.zip chromium_src-8f04ff93eba6678ed17b7157f805212d9438507b.tar.gz chromium_src-8f04ff93eba6678ed17b7157f805212d9438507b.tar.bz2 |
Adds a way to set the boundaries of the browser window through
automation and use that to set the size of the window in the
"New Tab Cold" to ensure we are testing the normal case and not the
small case.
BUG=None
TEST=The NewTabUIStartupTest, PerfCold should still work.
Review URL: http://codereview.chromium.org/149233
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/window_proxy.cc')
-rw-r--r-- | chrome/test/automation/window_proxy.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/automation/window_proxy.cc b/chrome/test/automation/window_proxy.cc index 6cced64..eea1ced 100644 --- a/chrome/test/automation/window_proxy.cc +++ b/chrome/test/automation/window_proxy.cc @@ -106,6 +106,15 @@ bool WindowProxy::GetViewBoundsWithTimeout(int view_id, gfx::Rect* bounds, return result; } +bool WindowProxy::SetBounds(const gfx::Rect& bounds) { + if (!is_valid()) + return false; + bool result = false; + sender_->Send(new AutomationMsg_SetWindowBounds(0, handle_, bounds, + &result)); + return result; +} + bool WindowProxy::GetFocusedViewID(int* view_id) { if (!is_valid()) return false; |