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

Unified Diff: chrome/browser/extensions/extension_sidebar_api.h

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/extensions/extension_sidebar_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/extensions/extension_sidebar_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698