// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_IME_CHROMEOS_IME_KEYMAP_H_ #define UI_BASE_IME_CHROMEOS_IME_KEYMAP_H_ #include <string> #include "base/basictypes.h" #include "ui/base/ui_base_export.h" #include "ui/events/keycodes/keyboard_codes.h" namespace ui { // Translates the DOM4 key code string to ui::KeyboardCode. UI_BASE_EXPORT KeyboardCode DomKeycodeToKeyboardCode(const std::string& code); // Translates the ui::KeyboardCode to DOM4 key code string. UI_BASE_EXPORT std::string KeyboardCodeToDomKeycode(KeyboardCode code); } // namespace ui #endif // UI_BASE_IME_CHROMEOS_IME_KEYMAP_H_