| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_SIDEBAR_SIDEBAR_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_SIDEBAR_SIDEBAR_CONTAINER_H_ | 6 #define CHROME_BROWSER_SIDEBAR_SIDEBAR_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 SidebarContainer(TabContents* tab, const std::string& content_id, | 40 SidebarContainer(TabContents* tab, const std::string& content_id, |
| 41 Delegate* delegate); | 41 Delegate* delegate); |
| 42 virtual ~SidebarContainer(); | 42 virtual ~SidebarContainer(); |
| 43 | 43 |
| 44 // Called right before destroying this sidebar. | 44 // Called right before destroying this sidebar. |
| 45 // Does all the necessary cleanup. | 45 // Does all the necessary cleanup. |
| 46 void SidebarClosing(); | 46 void SidebarClosing(); |
| 47 | 47 |
| 48 // Returns id of the tab this sidebar is linked to. | |
| 49 int GetTabId() const; | |
| 50 | |
| 51 // Returns sidebar's content id. | 48 // Returns sidebar's content id. |
| 52 const std::string& content_id() const { return content_id_; } | 49 const std::string& content_id() const { return content_id_; } |
| 53 | 50 |
| 54 // Returns TabContents sidebar is linked to. | 51 // Returns TabContents sidebar is linked to. |
| 55 TabContents* tab_contents() const { return tab_; } | 52 TabContents* tab_contents() const { return tab_; } |
| 56 | 53 |
| 57 // Returns sidebar's TabContents. | 54 // Returns sidebar's TabContents. |
| 58 TabContents* sidebar_contents() const { return sidebar_contents_.get(); } | 55 TabContents* sidebar_contents() const { return sidebar_contents_.get(); } |
| 59 | 56 |
| 60 // Accessor for the badge text. | 57 // Accessor for the badge text. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 scoped_ptr<SkBitmap> icon_; | 129 scoped_ptr<SkBitmap> icon_; |
| 133 | 130 |
| 134 // Sidebar's title, displayed as a tooltip for sidebar's mini tab. | 131 // Sidebar's title, displayed as a tooltip for sidebar's mini tab. |
| 135 string16 title_; | 132 string16 title_; |
| 136 | 133 |
| 137 DISALLOW_COPY_AND_ASSIGN(SidebarContainer); | 134 DISALLOW_COPY_AND_ASSIGN(SidebarContainer); |
| 138 }; | 135 }; |
| 139 | 136 |
| 140 #endif // CHROME_BROWSER_SIDEBAR_SIDEBAR_CONTAINER_H_ | 137 #endif // CHROME_BROWSER_SIDEBAR_SIDEBAR_CONTAINER_H_ |
| 141 | 138 |
| OLD | NEW |