Home | History | Annotate | Download | only in sidebar

Lines Matching refs:tab

20   // Sidebars linked to this tab.
41 TabContents* tab) {
42 TabToSidebarHostMap::iterator it = tab_to_sidebar_host_.find(tab);
54 TabContents* tab, const std::string& content_id) {
56 TabToSidebarHostMap::iterator it = tab_to_sidebar_host_.find(tab);
67 TabContents* tab, const std::string& content_id) {
69 SidebarContainer* sidebar_host = GetSidebarContainerFor(tab, content_id);
103 void SidebarManager::ShowSidebar(TabContents* tab,
106 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
108 host = new SidebarContainer(tab, content_id, this);
109 RegisterSidebarContainerFor(tab, host);
118 tab->profile(), tab, content_id,
122 void SidebarManager::ExpandSidebar(TabContents* tab,
125 TabToSidebarHostMap::iterator it = tab_to_sidebar_host_.find(tab);
132 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
141 void SidebarManager::CollapseSidebar(TabContents* tab,
144 TabToSidebarHostMap::iterator it = tab_to_sidebar_host_.find(tab);
151 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
160 void SidebarManager::HideSidebar(TabContents* tab,
163 TabToSidebarHostMap::iterator it = tab_to_sidebar_host_.find(tab);
169 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
172 UnregisterSidebarContainerFor(tab, content_id);
175 tab->profile(), tab, content_id,
179 void SidebarManager::NavigateSidebar(TabContents* tab,
183 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
191 TabContents* tab, const std::string& content_id,
193 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
200 TabContents* tab, const std::string& content_id,
202 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
209 TabContents* tab, const std::string& content_id,
211 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
239 void SidebarManager::HideAllSidebars(TabContents* tab) {
240 TabToSidebarHostMap::iterator tab_it = tab_to_sidebar_host_.find(tab);
254 HideSidebar(tab, *it);
270 TabContents* tab, SidebarContainer* sidebar_host) {
271 DCHECK(!GetSidebarContainerFor(tab, sidebar_host->content_id()));
273 // If it's a first sidebar for this tab, register destroy notification.
274 if (tab_to_sidebar_host_.find(tab) == tab_to_sidebar_host_.end()) {
277 Source<TabContents>(tab));
280 BindSidebarHost(tab, sidebar_host);
284 TabContents* tab, const std::string& content_id) {
285 SidebarContainer* host = GetSidebarContainerFor(tab, content_id);
290 UnbindSidebarHost(tab, host);
292 // If there's no more sidebars linked to this tab, unsubscribe.
293 if (tab_to_sidebar_host_.find(tab) == tab_to_sidebar_host_.end()) {
296 Source<TabContents>(tab));
299 // Issue tab closing event post unbound.
305 void SidebarManager::BindSidebarHost(TabContents* tab,
309 DCHECK(GetSidebarContainerFor(tab, content_id) == NULL);
313 tab_to_sidebar_host_[tab].content_id_to_sidebar_host[content_id] =
315 sidebar_host_to_tab_[sidebar_host] = tab;
318 void SidebarManager::UnbindSidebarHost(TabContents* tab,
322 DCHECK(GetSidebarContainerFor(tab, content_id) == sidebar_host);
323 DCHECK(sidebar_host_to_tab_.find(sidebar_host)->second == tab);
324 DCHECK(tab_to_sidebar_host_[tab].active_content_id != content_id);
326 tab_to_sidebar_host_[tab].content_id_to_sidebar_host.erase(content_id);
327 if (tab_to_sidebar_host_[tab].content_id_to_sidebar_host.empty())
328 tab_to_sidebar_host_.erase(tab);