summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/browser_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/browser_proxy.cc')
-rw-r--r--chrome/test/automation/browser_proxy.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index 88c447d..425c6b5 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -347,3 +347,28 @@ bool BrowserProxy::RunCommand(int browser_command) const {
return false;
}
+bool BrowserProxy::GetBookmarkBarVisibility(bool* is_visible,
+ bool* is_animating) {
+ if (!is_valid())
+ return false;
+
+ if (!is_visible || !is_animating) {
+ NOTREACHED();
+ return false;
+ }
+
+ IPC::Message* response = NULL;
+ bool succeeded = sender_->SendAndWaitForResponse(
+ new AutomationMsg_BookmarkBarVisibilityRequest(0, handle_),
+ &response,
+ AutomationMsg_BookmarkBarVisibilityResponse::ID);
+
+ if (!succeeded)
+ return false;
+
+ void* iter = NULL;
+ response->ReadBool(&iter, is_visible);
+ response->ReadBool(&iter, is_animating);
+ delete response;
+ return true;
+}