diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 21:01:34 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 21:01:34 +0000 |
commit | fa9ed6a0cd30041c269398e99f3f34ef070d8666 (patch) | |
tree | 803e593f722de0fe0589f605008e2b83b9651c25 /app/menus | |
parent | df970ecba180164e86be3dc3a3b802e203295984 (diff) | |
download | chromium_src-fa9ed6a0cd30041c269398e99f3f34ef070d8666.zip chromium_src-fa9ed6a0cd30041c269398e99f3f34ef070d8666.tar.gz chromium_src-fa9ed6a0cd30041c269398e99f3f34ef070d8666.tar.bz2 |
Reapply menu model cleanups, with WrenchMenuModel being a SimpleMenuModel.
BUG=47320
TEST=compiles
Review URL: http://codereview.chromium.org/3184021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/menus')
-rw-r--r-- | app/menus/accelerator.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/menus/accelerator.h b/app/menus/accelerator.h index def6cf2..06adb99 100644 --- a/app/menus/accelerator.h +++ b/app/menus/accelerator.h @@ -68,6 +68,21 @@ class Accelerator { int modifiers_; }; +// Since acclerator code is one of the few things that can't be cross platform +// in the chrome UI, separate out just the GetAcceleratorForCommandId() from +// the menu delegates. +class AcceleratorProvider { + public: + // Gets the accelerator for the specified command id. Returns true if the + // command id has a valid accelerator, false otherwise. + virtual bool GetAcceleratorForCommandId( + int command_id, + menus::Accelerator* accelerator) = 0; + + protected: + virtual ~AcceleratorProvider() {} +}; + } #endif // APP_MENUS_ACCELERATOR_H_ |