diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 23:14:26 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 23:14:26 +0000 |
commit | 4150ef026218967e259f7b70cce5739afb12f475 (patch) | |
tree | b416b3900afe8155fdce8817febde568527ac368 /chrome/test/automation/tab_proxy.cc | |
parent | 802629d5d0b0aaafa00c94c5b39f5b7290723a32 (diff) | |
download | chromium_src-4150ef026218967e259f7b70cce5739afb12f475.zip chromium_src-4150ef026218967e259f7b70cce5739afb12f475.tar.gz chromium_src-4150ef026218967e259f7b70cce5739afb12f475.tar.bz2 |
Support navigating to absolute index through automation.
Also, send more information in AutomationMsg_DidNavigate
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/165333
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 3d21d8f..f59f821 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -117,6 +117,17 @@ AutomationMsg_NavigationResponseValues TabProxy::NavigateInExternalTab( return rv; } +AutomationMsg_NavigationResponseValues TabProxy::NavigateExternalTabAtIndex( + int index) { + if (!is_valid()) + return AUTOMATION_MSG_NAVIGATION_ERROR; + + AutomationMsg_NavigationResponseValues rv = AUTOMATION_MSG_NAVIGATION_ERROR; + sender_->Send(new AutomationMsg_NavigateExternalTabAtIndex(0, handle_, index, + &rv)); + return rv; +} + bool TabProxy::SetAuth(const std::wstring& username, const std::wstring& password) { if (!is_valid()) |