2013-05-14 13:12:27 +00: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.
|
|
|
|
|
|
|
|
#ifndef BROWSER_ACCELERATOR_UTIL_H_
|
|
|
|
#define BROWSER_ACCELERATOR_UTIL_H_
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
|
|
|
|
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 07:24:18 +00:00
|
|
|
// Set platform accelerator for the Accelerator.
|
|
|
|
void SetPlatformAccelerator(ui::Accelerator* accelerator);
|
|
|
|
|
2013-05-14 13:12:27 +00:00
|
|
|
} // namespace accelerator_util
|
|
|
|
|
|
|
|
#endif // BROWSER_ACCELERATOR_UTIL_H_
|