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

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

Issue 3212005: Unify sidebar identification in the chrome.experimental.sidebar extension API... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 3 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sidebar_api.cc ('k') | chrome/browser/sidebar/sidebar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698