OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ |
6 #define CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ | 6 #define CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void SetSidebarTitle(TabContents* tab, | 92 void SetSidebarTitle(TabContents* tab, |
93 const std::string& content_id, | 93 const std::string& content_id, |
94 const string16& title); | 94 const string16& title); |
95 | 95 |
96 private: | 96 private: |
97 friend class base::RefCounted<SidebarManager>; | 97 friend class base::RefCounted<SidebarManager>; |
98 | 98 |
99 virtual ~SidebarManager(); | 99 virtual ~SidebarManager(); |
100 | 100 |
101 // Overridden from NotificationObserver. | 101 // Overridden from NotificationObserver. |
102 virtual void Observe(NotificationType type, | 102 virtual void Observe(int type, |
103 const NotificationSource& source, | 103 const NotificationSource& source, |
104 const NotificationDetails& details); | 104 const NotificationDetails& details); |
105 | 105 |
106 // Overridden from SidebarContainer::Delegate. | 106 // Overridden from SidebarContainer::Delegate. |
107 virtual void UpdateSidebar(SidebarContainer* host); | 107 virtual void UpdateSidebar(SidebarContainer* host); |
108 | 108 |
109 // Hides all sidebars registered for |tab|. | 109 // Hides all sidebars registered for |tab|. |
110 void HideAllSidebars(TabContents* tab); | 110 void HideAllSidebars(TabContents* tab); |
111 | 111 |
112 // Returns SidebarContainer corresponding to |sidebar_contents|. | 112 // Returns SidebarContainer corresponding to |sidebar_contents|. |
(...skipping 30 matching lines...) Expand all Loading... |
143 TabToSidebarHostMap tab_to_sidebar_host_; | 143 TabToSidebarHostMap tab_to_sidebar_host_; |
144 | 144 |
145 typedef std::map<SidebarContainer*, TabContents*> SidebarHostToTabMap; | 145 typedef std::map<SidebarContainer*, TabContents*> SidebarHostToTabMap; |
146 SidebarHostToTabMap sidebar_host_to_tab_; | 146 SidebarHostToTabMap sidebar_host_to_tab_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(SidebarManager); | 148 DISALLOW_COPY_AND_ASSIGN(SidebarManager); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ | 151 #endif // CHROME_BROWSER_SIDEBAR_SIDEBAR_MANAGER_H_ |
152 | 152 |
OLD | NEW |