summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/window_proxy.h
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 02:37:15 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 02:37:15 +0000
commit8f04ff93eba6678ed17b7157f805212d9438507b (patch)
tree75623ea56d3ec9d943242ee48c9ef8d0b7d6cf14 /chrome/test/automation/window_proxy.h
parent7b3013e65e46ba705b956ac957f086512dff0677 (diff)
downloadchromium_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.h')
-rw-r--r--chrome/test/automation/window_proxy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/automation/window_proxy.h b/chrome/test/automation/window_proxy.h
index 8beb158..efbe1ca 100644
--- a/chrome/test/automation/window_proxy.h
+++ b/chrome/test/automation/window_proxy.h
@@ -82,6 +82,11 @@ class WindowProxy : public AutomationResourceProxy {
bool GetViewBoundsWithTimeout(int view_id, gfx::Rect* bounds,
bool screen_coordinates, uint32 timeout_ms,
bool* is_timeout);
+
+ // Sets the position and size of the window. Returns true if setting the
+ // bounds was successful.
+ bool SetBounds(const gfx::Rect& bounds);
+
// Gets the id of the view that currently has focus. Returns true if the id
// was retrieved.
bool GetFocusedViewID(int* view_id);