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

Unified Diff: chrome/browser/views/extensions/extension_action_context_menu.h

Issue 1107007: Extension context menu refactor (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/views/extensions/extension_action_context_menu.h
===================================================================
--- chrome/browser/views/extensions/extension_action_context_menu.h (revision 41960)
+++ chrome/browser/views/extensions/extension_action_context_menu.h (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2009 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_VIEWS_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
-#define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
-
-#include "views/controls/menu/menu_2.h"
-#include "chrome/browser/extensions/extension_install_ui.h"
-#include "chrome/browser/extensions/extension_action_context_menu_model.h"
-
-class Extension;
-class ExtensionAction;
-class PrefService;
-
-// Displays the context menu for extension action icons (browser/page actions).
-class ExtensionActionContextMenu {
- public:
- ExtensionActionContextMenu();
- ~ExtensionActionContextMenu();
-
- // Display the context menu at a given point.
- void Run(Extension* extension,
- ExtensionAction* extension_action,
- ExtensionActionContextMenuModel::MenuDelegate* delegate,
- PrefService* prefs,
- const gfx::Point& point);
-
- // Closes the context menu if open.
- void Cancel();
-
- private:
- // The options menu.
- scoped_ptr<ExtensionActionContextMenuModel> context_menu_contents_;
- scoped_ptr<views::Menu2> context_menu_menu_;
-
- // The extension we are showing the menu for.
- Extension* extension_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionActionContextMenu);
-};
-
-#endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_

Powered by Google App Engine
This is Rietveld 408576698