C++程序  |  25行  |  715 B

// Copyright 2013 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 CHROMEOS_IME_IBUS_KEYMAP_H_
#define CHROMEOS_IME_IBUS_KEYMAP_H_

#include <string>
#include "base/basictypes.h"
#include "chromeos/chromeos_export.h"

namespace chromeos {
namespace input_method {

// Translates the key value from an IBus constant to a string.
CHROMEOS_EXPORT std::string GetIBusKey(int keyval);

// Translates the unmodified keycode from an IBus constant to a string.
CHROMEOS_EXPORT std::string GetIBusKeyCode(uint16 keycode);

}  // namespace input_method
}  // namespace chromeos

#endif  // CHROMEOS_IME_IBUS_KEYMAP_H_