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

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

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: chrome/browser/extensions/extension_sidebar_api.h
===================================================================
--- chrome/browser/extensions/extension_sidebar_api.h (revision 116830)
+++ chrome/browser/extensions/extension_sidebar_api.h (working copy)
@@ -1,122 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_
-
-#include <string>
-#include "chrome/browser/extensions/extension_function.h"
-
-class Profile;
-class TabContents;
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace content {
-class WebContents;
-}
-
-namespace extension_sidebar_constants {
-extern const char kActiveState[];
-extern const char kHiddenState[];
-extern const char kShownState[];
-} // namespace extension_sidebar_constants
-
-// Event router class for events related to the sidebar API.
-class ExtensionSidebarEventRouter {
- public:
- // Sidebar state changed.
- static void OnStateChanged(
- Profile* profile, content::WebContents* tab,
- const std::string& content_id, const std::string& state);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ExtensionSidebarEventRouter);
-};
-
-// Base class for sidebar function APIs.
-class SidebarFunction : public SyncExtensionFunction {
- public:
- virtual bool RunImpl() OVERRIDE;
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) = 0;
-};
-
-class CollapseSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.collapse");
-};
-
-class ExpandSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.expand");
-};
-
-class GetStateSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.getState");
-};
-
-class HideSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.hide");
-};
-
-class NavigateSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.navigate");
-};
-
-class SetBadgeTextSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setBadgeText");
-};
-
-class SetIconSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setIcon");
-};
-
-class SetTitleSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.setTitle");
-};
-
-class ShowSidebarFunction : public SidebarFunction {
- private:
- virtual bool RunImpl(TabContents* tab,
- const std::string& content_id,
- const base::DictionaryValue& details) OVERRIDE;
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.sidebar.show");
-};
-
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SIDEBAR_API_H_
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_sidebar_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698