blob: 2908107e13c8e819d507d9e7185aabc0c8343cb7 [file] [log] [blame]
// 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/component_export.h"
#include "ui/events/keycodes/keyboard_codes.h"
namespace ui {
// Translates the DOM4 key code string to ui::KeyboardCode.
COMPONENT_EXPORT(UI_BASE_IME_CHROMEOS)
KeyboardCode DomKeycodeToKeyboardCode(const std::string& code);
// Translates the ui::KeyboardCode to DOM4 key code string.
COMPONENT_EXPORT(UI_BASE_IME_CHROMEOS)
std::string KeyboardCodeToDomKeycode(KeyboardCode code);
} // namespace ui
#endif // UI_BASE_IME_CHROMEOS_IME_KEYMAP_H_