diff options
Diffstat (limited to 'chrome/browser/automation')
4 files changed, 15 insertions, 33 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 8c1de8c..6a29cba 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -1266,6 +1266,21 @@ void AutomationProvider::HandleFindWindowLocationRequest(int handle, int* x, *y = position.y(); } +void AutomationProvider::GetBookmarkBarVisibility(int handle, + bool* visible, + bool* animating) { + *visible = false; + *animating = false; + + if (browser_tracker_->ContainsHandle(handle)) { + Browser* browser = browser_tracker_->GetResource(handle); + if (browser) { + *visible = browser->window()->IsBookmarkBarVisible(); + *animating = browser->window()->IsBookmarkBarAnimating(); + } + } +} + void AutomationProvider::HandleInspectElementRequest( int handle, int x, int y, IPC::Message* reply_message) { TabContents* tab_contents = GetTabContentsForHandle(handle, NULL); diff --git a/chrome/browser/automation/automation_provider_gtk.cc b/chrome/browser/automation/automation_provider_gtk.cc index eaed3b5..45623a2 100644 --- a/chrome/browser/automation/automation_provider_gtk.cc +++ b/chrome/browser/automation/automation_provider_gtk.cc @@ -92,13 +92,6 @@ void AutomationProvider::SetInitialFocus(const IPC::Message& message, NOTIMPLEMENTED(); } -void AutomationProvider::GetBookmarkBarVisibility(int handle, bool* visible, - bool* animating) { - *visible = false; - *animating = false; - NOTIMPLEMENTED(); -} - // This task sends a WindowDragResponse message with the appropriate // routing ID to the automation proxy. This is implemented as a task so that // we know that the mouse events (and any tasks that they spawn on the message diff --git a/chrome/browser/automation/automation_provider_mac.mm b/chrome/browser/automation/automation_provider_mac.mm index 78ac739..b475f4d 100644 --- a/chrome/browser/automation/automation_provider_mac.mm +++ b/chrome/browser/automation/automation_provider_mac.mm @@ -117,13 +117,6 @@ void AutomationProvider::SetInitialFocus(const IPC::Message& message, NOTIMPLEMENTED(); } -void AutomationProvider::GetBookmarkBarVisibility(int handle, bool* visible, - bool* animating) { - *visible = false; - *animating = false; - NOTIMPLEMENTED(); -} - void AutomationProvider::WindowSimulateDrag(int handle, std::vector<gfx::Point> drag_path, int flags, diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc index d31836f9..ecdcd57 100644 --- a/chrome/browser/automation/automation_provider_win.cc +++ b/chrome/browser/automation/automation_provider_win.cc @@ -244,25 +244,6 @@ void AutomationProvider::GetFocusedViewID(int handle, int* view_id) { } } -void AutomationProvider::GetBookmarkBarVisibility(int handle, bool* visible, - bool* animating) { - *visible = false; - *animating = false; - - if (browser_tracker_->ContainsHandle(handle)) { - Browser* browser = browser_tracker_->GetResource(handle); - if (browser) { - BrowserWindowTesting* testing = - browser->window()->GetBrowserWindowTesting(); - BookmarkBarView* bookmark_bar = testing->GetBookmarkBarView(); - if (bookmark_bar) { - *animating = bookmark_bar->IsAnimating(); - *visible = browser->window()->IsBookmarkBarVisible(); - } - } - } -} - void AutomationProvider::GetWindowBounds(int handle, gfx::Rect* bounds, bool* success) { *success = false; |