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

Unified Diff: trunk/src/chrome/browser/extensions/extension_context_menu_model.h

Issue 455023002: Revert 288418 "Extend contextMenus API to support browser/page a..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/chrome/browser/extensions/extension_context_menu_model.h
===================================================================
--- trunk/src/chrome/browser/extensions/extension_context_menu_model.h (revision 288421)
+++ trunk/src/chrome/browser/extensions/extension_context_menu_model.h (working copy)
@@ -17,8 +17,6 @@
namespace extensions {
class Extension;
-class ContextMenuMatcher;
-class ExtensionContextMenuModelTest;
}
// The context menu model for extension icons.
@@ -37,9 +35,6 @@
INSPECT_POPUP
};
- // Type of action the extension icon represents.
- enum ActionType { NO_ACTION = 0, BROWSER_ACTION, PAGE_ACTION };
-
// Delegate to handle showing an ExtensionAction popup.
class PopupDelegate {
public:
@@ -79,8 +74,6 @@
private:
friend class base::RefCounted<ExtensionContextMenuModel>;
- friend class extensions::ExtensionContextMenuModelTest;
-
virtual ~ExtensionContextMenuModel();
void InitMenu(const extensions::Extension* extension);
@@ -89,9 +82,6 @@
// extension has been uninstalled and no longer exists.
const extensions::Extension* GetExtension() const;
- // Appends the extension's context menu items.
- void AppendExtensionItems();
-
// A copy of the extension's id.
std::string extension_id_;
@@ -106,18 +96,9 @@
// The delegate which handles the 'inspect popup' menu command (or NULL).
PopupDelegate* delegate_;
- // The type of extension action to which this context menu is attached.
- ActionType action_type_;
-
// Keeps track of the extension uninstall dialog.
scoped_ptr<extensions::ExtensionUninstallDialog> extension_uninstall_dialog_;
- // Menu matcher for context menu items specified by the extension.
- scoped_ptr<extensions::ContextMenuMatcher> extension_items_;
-
- // Number of extension items in this menu. Used for testing.
- int extension_items_count_;
-
DISALLOW_COPY_AND_ASSIGN(ExtensionContextMenuModel);
};

Powered by Google App Engine
This is Rietveld 408576698