summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/render_view_context_menu_mac.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 14:35:59 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 14:35:59 +0000
commit490ecb0178c9fa1059b5cabf057f52b4faafae77 (patch)
tree1f7b5d72c899ad2d9dc208204415a092e91ef54f /chrome/browser/tab_contents/render_view_context_menu_mac.h
parent9e4142b441be48a6163173713e02622e54c99533 (diff)
downloadchromium_src-490ecb0178c9fa1059b5cabf057f52b4faafae77.zip
chromium_src-490ecb0178c9fa1059b5cabf057f52b4faafae77.tar.gz
chromium_src-490ecb0178c9fa1059b5cabf057f52b4faafae77.tar.bz2
Implements the AppendRadioMenuItem and AppendCheckboxMenuItem functions
for the mac platform. Patch from pwicks86@gmail.com (Paul Wicks) BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/render_view_context_menu_mac.h')
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu_mac.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu_mac.h b/chrome/browser/tab_contents/render_view_context_menu_mac.h
index 0703a18..ee42bce 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_mac.h
+++ b/chrome/browser/tab_contents/render_view_context_menu_mac.h
@@ -40,6 +40,13 @@ class RenderViewContextMenuMac : public RenderViewContextMenu {
static NSString* PrepareLabelForDisplay(const string16& label);
private:
+ // Private helper method used by the implementations of the above methods.
+ // All MenuItems are represented as NSMenuItems no matter what kind they
+ // are (Normal, Radio, Checkbox). All of the above call this method, providing
+ // a useful value for |state| based upon some specific lookup, usually based
+ // on the id.
+ void AppendMenuItemWithState(int id, const string16& label,
+ NSCellStateValue state);
NSMenu* menu_;
NSMenu* insert_menu_; // weak, where new items are inserted (usually
// |menu_| unless there's a submenu in progress).