diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 16:46:25 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-09 16:46:25 +0000 |
commit | 3941c026ba6576a4e21c93f3f08b917505c369a1 (patch) | |
tree | 2dbaad011bd9b20eadfbc25477c20a51a7f60a6e /chrome/test/automation/tab_proxy.cc | |
parent | f61b898ba829ce8b1393f5a518a0f28eaafa1408 (diff) | |
download | chromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.zip chromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.tar.gz chromium_src-3941c026ba6576a4e21c93f3f08b917505c369a1.tar.bz2 |
Adding support for tab notifications and initializing the focus of an automated tab.
Review URL: http://codereview.chromium.org/20125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 61b50cf..e0e6102 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -641,6 +641,14 @@ bool TabProxy::ProcessUnhandledAccelerator(const MSG& msg) { // This message expects no response } +bool TabProxy::SetInitialFocus(bool reverse) { + if (!is_valid()) + return false; + return sender_->Send( + new AutomationMsg_SetInitialFocus(0, handle_, reverse)); + // This message expects no response +} + bool TabProxy::WaitForTabToBeRestored(uint32 timeout_ms) { if (!is_valid()) return false; |