1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROMEOS_SERVICES_IME_PUBLIC_CPP_RULEBASED_DEF_MY_H_
6 #define CHROMEOS_SERVICES_IME_PUBLIC_CPP_RULEBASED_DEF_MY_H_
7 
8 namespace my {
9 
10 // The id of this IME/keyboard.
11 extern const char* kId;
12 
13 // Whether this keyboard layout is a 102 or 101 keyboard.
14 extern bool kIs102;
15 
16 // The key mapping definitions under various modifier states.
17 extern const char** kKeyMap[8];
18 
19 // The transform rules definition. The string items in the even indexes are
20 // the regular expressions represent what needs to be transformed, and the
21 // ones in the odd indexes represent it can transform to what.
22 extern const char* kTransforms[];
23 
24 // The length of the transform rules.
25 extern const unsigned int kTransformsLen;
26 
27 // The history prune regexp.
28 extern const char* kHistoryPrune;
29 
30 }  // namespace my
31 
32 #endif  // CHROMEOS_SERVICES_IME_PUBLIC_CPP_RULEBASED_DEF_MY_H_
33