diff options
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. // |