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:
parent
995b9dacc9
commit
b16c19ce32
4 changed files with 42 additions and 0 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue