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

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

Issue 525098: [Mac] Implements context menus for Page Actions. Introduces a reusable subcla... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Final changes before submit. Created 10 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/cocoa/extensions/extension_action_context_menu.h
===================================================================
--- chrome/browser/cocoa/extensions/extension_action_context_menu.h (revision 0)
+++ chrome/browser/cocoa/extensions/extension_action_context_menu.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 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_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
+#define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
+
+#include "base/ref_counted.h"
+
+#import <Cocoa/Cocoa.h>
+
+class Extension;
+class AsyncUninstaller;
+
+// A context menu used by the Browser and Page Action components that appears
+// if a user right-clicks the view of the given extension.
+@interface ExtensionActionContextMenu : NSMenu {
+ // The extension that this menu belongs to. Weak.
+ Extension* extension_;
+
+ // Used to load the extension icon asynchronously on the I/O thread then show
+ // the uninstall confirmation dialog.
+ scoped_refptr<AsyncUninstaller> uninstaller_;
+}
+
+// Initializes and returns a context menu for the given extension.
+- (id)initWithExtension:(Extension*)extension;
+
+@end
+
+typedef ExtensionActionContextMenu ExtensionActionContextMenuMac;
+
+#endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_ACTION_CONTEXT_MENU_H_
Property changes on: chrome/browser/cocoa/extensions/extension_action_context_menu.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698