Add StringToAccelerator to parse a string as an accelerator.
This commit is contained in:
parent
46c882f0ba
commit
014b0a9a38
3 changed files with 108 additions and 0 deletions
22
browser/accelerator_util.h
Normal file
22
browser/accelerator_util.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
// 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);
|
||||
|
||||
} // namespace accelerator_util
|
||||
|
||||
#endif // BROWSER_ACCELERATOR_UTIL_H_
|
Loading…
Add table
Add a link
Reference in a new issue