Convert generic accelerator to platform accelerator.

When creating menus, the accelerators must be converted to platform
accelerators before they can be used.
This commit is contained in:
Cheng Zhao 2013-05-16 15:24:18 +08:00
parent 995b9dacc9
commit b16c19ce32
4 changed files with 42 additions and 0 deletions

View file

@ -17,6 +17,9 @@ namespace accelerator_util {
bool StringToAccelerator(const std::string& description,
ui::Accelerator* accelerator);
// Set platform accelerator for the Accelerator.
void SetPlatformAccelerator(ui::Accelerator* accelerator);
} // namespace accelerator_util
#endif // BROWSER_ACCELERATOR_UTIL_H_