From 8f04ff93eba6678ed17b7157f805212d9438507b Mon Sep 17 00:00:00 2001
From: "arv@google.com" <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed, 8 Jul 2009 02:37:15 +0000
Subject: 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
---
 chrome/test/automation/window_proxy.h | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'chrome/test/automation/window_proxy.h')

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);
-- 
cgit v1.1