Index: chrome/browser/extensions/extension_sidebar_api.h |
=================================================================== |
--- chrome/browser/extensions/extension_sidebar_api.h (revision 74134) |
+++ chrome/browser/extensions/extension_sidebar_api.h (working copy) |
@@ -11,7 +11,7 @@ |
class DictionaryValue; |
class Profile; |
class RenderViewHost; |
-class TabContents; |
+class TabContentsWrapper; |
namespace extension_sidebar_constants { |
extern const char kActiveState[]; |
@@ -24,7 +24,9 @@ |
public: |
// Sidebar state changed. |
static void OnStateChanged( |
- Profile* profile, TabContents* tab, const std::string& content_id, |
+ Profile* profile, |
+ TabContentsWrapper* tab, |
+ const std::string& content_id, |
const std::string& state); |
private: |
@@ -36,14 +38,14 @@ |
public: |
virtual bool RunImpl(); |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details) = 0; |
}; |
class CollapseSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.collapse"); |
@@ -51,7 +53,7 @@ |
class ExpandSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.expand"); |
@@ -59,7 +61,7 @@ |
class GetStateSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.getState"); |
@@ -67,7 +69,7 @@ |
class HideSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.hide"); |
@@ -75,7 +77,7 @@ |
class NavigateSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.navigate"); |
@@ -83,7 +85,7 @@ |
class SetBadgeTextSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setBadgeText"); |
@@ -91,7 +93,7 @@ |
class SetIconSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setIcon"); |
@@ -99,7 +101,7 @@ |
class SetTitleSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setTitle"); |
@@ -107,7 +109,7 @@ |
class ShowSidebarFunction : public SidebarFunction { |
private: |
- virtual bool RunImpl(TabContents* tab, |
+ virtual bool RunImpl(TabContentsWrapper* tab, |
const std::string& content_id, |
const DictionaryValue& details); |
DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.show"); |