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

Unified Diff: chrome/browser/cocoa/location_bar/page_action_decoration.h

Issue 3148018: [Mac] Retain a reference within a scoped_nsobject of a Page Action's context menu. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fixed extra retain. Created 10 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/location_bar/page_action_decoration.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/location_bar/page_action_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/page_action_decoration.h b/chrome/browser/cocoa/location_bar/page_action_decoration.h
index d8d5ab7bd31d225313625840935219111d341633..26089124e250154104c170195012a560d0e288cc 100644
--- a/chrome/browser/cocoa/location_bar/page_action_decoration.h
+++ b/chrome/browser/cocoa/location_bar/page_action_decoration.h
@@ -12,6 +12,7 @@
#include "googleurl/src/gurl.h"
class ExtensionAction;
+@class ExtensionActionContextMenu;
class LocationBarViewMac;
class Profile;
class TabContents;
@@ -101,6 +102,9 @@ class PageActionDecoration : public ImageDecoration,
// The string to show for a tooltip.
scoped_nsobject<NSString> tooltip_;
+ // The context menu for the Page Action.
+ scoped_nsobject<ExtensionActionContextMenu> menu_;
+
// This is used for post-install visual feedback. The page_action
// icon is briefly shown even if it hasn't been enabled by its
// extension.
« no previous file with comments | « no previous file | chrome/browser/cocoa/location_bar/page_action_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698