Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: chrome/browser/sidebar/sidebar_manager.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sidebar/sidebar_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698