summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 06:48:55 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 06:48:55 +0000
commit0b282f9e8acb6b4b945df8121814a4cfba71dc32 (patch)
tree97182e3f900fbc6b86a6c1c4cb3542cfa3a216d7 /chrome/browser/download
parent7e6db17fdb7a995f70249881c399e522e69fb257 (diff)
downloadchromium_src-0b282f9e8acb6b4b945df8121814a4cfba71dc32.zip
chromium_src-0b282f9e8acb6b4b945df8121814a4cfba71dc32.tar.gz
chromium_src-0b282f9e8acb6b4b945df8121814a4cfba71dc32.tar.bz2
Change menus on OSX to update the icon dynamically.
Change MenuModel::IsLabelDynamicAt() to IsItemDynamicAt() to reflect its true purpose. Add SimpleMenuModel::GetIconForCommandId() to enable dynamic icons. Update OSX menu_controller code to update the icon for dynamic menu items when the menu is opened, to match the windows behavior. BUG=66508 TEST=MenuControllerTest.Dynamic Review URL: http://codereview.chromium.org/5697005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_shelf.cc2
-rw-r--r--chrome/browser/download/download_shelf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index 404bb2b..3380789 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -114,7 +114,7 @@ bool DownloadShelfContextMenu::GetAcceleratorForCommandId(
return false;
}
-bool DownloadShelfContextMenu::IsLabelForCommandIdDynamic(
+bool DownloadShelfContextMenu::IsItemForCommandIdDynamic(
int command_id) const {
return command_id == TOGGLE_PAUSE;
}
diff --git a/chrome/browser/download/download_shelf.h b/chrome/browser/download/download_shelf.h
index b85123c..ab565fa 100644
--- a/chrome/browser/download/download_shelf.h
+++ b/chrome/browser/download/download_shelf.h
@@ -73,7 +73,7 @@ class DownloadShelfContextMenu : public menus::SimpleMenuModel::Delegate {
virtual void ExecuteCommand(int command_id);
virtual bool GetAcceleratorForCommandId(int command_id,
menus::Accelerator* accelerator);
- virtual bool IsLabelForCommandIdDynamic(int command_id) const;
+ virtual bool IsItemForCommandIdDynamic(int command_id) const;
virtual string16 GetLabelForCommandId(int command_id) const;
// A model to control the cancel behavior.