2013-05-14 21:12:27 +08:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2013-08-13 17:07:25 +08:00
|
|
|
#ifndef BROWSER_UI_ACCELERATOR_UTIL_H_
|
|
|
|
#define BROWSER_UI_ACCELERATOR_UTIL_H_
|
2013-05-14 21:12:27 +08:00
|
|
|
|
2013-07-01 21:56:46 +08:00
|
|
|
#include <string>
|
2013-05-14 21:12:27 +08:00
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
class Accelerator;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace accelerator_util {
|
|
|
|
|
|
|
|
// Parse a string as an accelerator.
|
|
|
|
bool StringToAccelerator(const std::string& description,
|
|
|
|
ui::Accelerator* accelerator);
|
|
|
|
|
2013-05-16 15:24:18 +08:00
|
|
|
// Set platform accelerator for the Accelerator.
|
|
|
|
void SetPlatformAccelerator(ui::Accelerator* accelerator);
|
|
|
|
|
2013-05-14 21:12:27 +08:00
|
|
|
} // namespace accelerator_util
|
|
|
|
|
2013-08-13 17:07:25 +08:00
|
|
|
#endif // BROWSER_UI_ACCELERATOR_UTIL_H_
|