diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 01:21:48 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 01:21:48 +0000 |
commit | 82a200191df08bab26f78240af1883ca46b1942f (patch) | |
tree | 0ff39c52e8e86e0eff79f88d74d35bd003e8960e /chrome/test/automation/browser_proxy.h | |
parent | 58567187439fdcad4cf4fdc39a1d92668b7afbb8 (diff) | |
download | chromium_src-82a200191df08bab26f78240af1883ca46b1942f.zip chromium_src-82a200191df08bab26f78240af1883ca46b1942f.tar.gz chromium_src-82a200191df08bab26f78240af1883ca46b1942f.tar.bz2 |
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
Diffstat (limited to 'chrome/test/automation/browser_proxy.h')
-rw-r--r-- | chrome/test/automation/browser_proxy.h | 14 |
1 files changed, 14 insertions, 0 deletions
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. // |