summaryrefslogtreecommitdiffstats
path: root/chromeos/ime/ibus_keymap.h
blob: a95994cb9347c74dd0f367aaab2378f4503b974a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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_