electron/browser/ui/accelerator_util.h

26 lines
662 B
C
Raw Normal View History

// 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 09:07:25 +00:00
#ifndef BROWSER_UI_ACCELERATOR_UTIL_H_
#define BROWSER_UI_ACCELERATOR_UTIL_H_
#include <string>
namespace ui {
class Accelerator;
}
namespace accelerator_util {
// Parse a string as an accelerator.
bool StringToAccelerator(const std::string& description,
ui::Accelerator* accelerator);
// Set platform accelerator for the Accelerator.
void SetPlatformAccelerator(ui::Accelerator* accelerator);
} // namespace accelerator_util
2013-08-13 09:07:25 +00:00
#endif // BROWSER_UI_ACCELERATOR_UTIL_H_