From 82a200191df08bab26f78240af1883ca46b1942f Mon Sep 17 00:00:00 2001 From: "stoyan@chromium.org" Date: Wed, 21 Jan 2009 01:21:48 +0000 Subject: Refactor automation wrappers. Move the methods from AutomationProxy to the appropriate classes. Review URL: http://codereview.chromium.org/18335 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8351 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/automation/browser_proxy.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'chrome/test/automation/browser_proxy.h') diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h index c67dd33..4df9269 100644 --- a/chrome/test/automation/browser_proxy.h +++ b/chrome/test/automation/browser_proxy.h @@ -11,6 +11,8 @@ class GURL; class TabProxy; +class WindowProxy; +class AutocompleteEditProxy; namespace gfx { class Rect; @@ -91,6 +93,18 @@ class BrowserProxy : public AutomationResourceProxy { // the specified timout. TabProxy* GetActiveTabWithTimeout(uint32 timeout_ms, bool* is_timeout) const; + // Returns the WindowProxy for this browser's window. It can be used to + // retreive view bounds, simulate clicks and key press events. The caller + // owns the returned WindowProxy. + // On failure, returns NULL. + WindowProxy* GetWindow(); + + // Returns an AutocompleteEdit for this browser's window. It can be used to + // manipulate the omnibox. The caller owns the returned pointer. + // On failure, returns NULL. + AutocompleteEditProxy* GetAutocompleteEdit(); + + // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) // Returns true if the call was successful. // -- cgit v1.1