summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r--chrome/test/automation/tab_proxy.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc
index c359f34..6171ddb 100644
--- a/chrome/test/automation/tab_proxy.cc
+++ b/chrome/test/automation/tab_proxy.cc
@@ -928,3 +928,14 @@ bool TabProxy::SavePage(const std::wstring& file_name,
return succeeded;
}
+
+void TabProxy::PostMessage(AutomationHandle handle,
+ const std::string& target,
+ const std::string& message) {
+ if (!is_valid())
+ return;
+
+ bool succeeded =
+ sender_->Send(new AutomationMsg_PostMessage(0, handle, target, message));
+ DCHECK(succeeded);
+}