Chromium Code Reviews| Index: chrome/browser/extensions/api/braille_display_private/brlapi_keycode_map.h |
| diff --git a/chrome/browser/extensions/api/braille_display_private/brlapi_keycode_map.h b/chrome/browser/extensions/api/braille_display_private/brlapi_keycode_map.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..177e058b2bb4e91a300d4f4036331630de4e6d32 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/braille_display_private/brlapi_keycode_map.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
David Tseng
2014/05/27 21:29:31
Any need to add a unit tests for this file (or is
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_BRLAPI_KEYCODE_MAP_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_BRLAPI_KEYCODE_MAP_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "chrome/common/extensions/api/braille_display_private.h" |
| +#include "library_loaders/libbrlapi.h" |
| + |
| +namespace extensions { |
| +namespace api { |
| +namespace braille_display_private { |
| + |
| +// Maps a 64 bit BrlAPI keycode to a braille |KeyEvent| object. |
| +scoped_ptr<KeyEvent> BrlapiKeyCodeToEvent(brlapi_keyCode_t code); |
| + |
| +} // namespace braille_display_private |
| +} // namespace api |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_BRLAPI_KEYCODE_MAP_H_ |