BaseTab* BaseTabStrip::GetTabAt(BaseTab* tab, const gfx::Point& tab_in_tab_coordinates) { gfx::Point local_point = tab_in_tab_coordinates; ConvertPointToView(tab, this, &local_point); return GetTabAtLocal(local_point); }
view::DropTargetEvent* BrowserRootView::MapEventToTabStrip( const view::DropTargetEvent& event, const ui::OSExchangeData& data) { gfx::Point tab_strip_loc(event.location()); ConvertPointToView(this, tabstrip(), &tab_strip_loc); return new view::DropTargetEvent(data, tab_strip_loc.x(), tab_strip_loc.y(), event.source_operations()); }
bool BrowserRootView::ShouldForwardToTabStrip( const view::DropTargetEvent& event) { if(!tabstrip()->IsVisible()) { return false; } // Allow the drop as long as the mouse is over the tabstrip or vertically // before it. gfx::Point tab_loc_in_host; ConvertPointToView(tabstrip(), this, &tab_loc_in_host); return event.y() < tab_loc_in_host.y() + tabstrip()->height(); }