Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: ash/common/system/tray/ime_info.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/system/tray/hover_highlight_view.cc ('k') | ash/common/system/tray/ime_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_
6 #define ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ash/ash_export.h"
12 #include "base/strings/string16.h"
13
14 namespace ash {
15
16 struct ASH_EXPORT IMEInfo {
17 IMEInfo();
18 IMEInfo(const IMEInfo& other);
19 ~IMEInfo();
20
21 // True if the IME the current IME.
22 bool selected;
23
24 // True if the IME is a third-party extension.
25 bool third_party;
26
27 // ID that identifies the IME (e.g., "t:latn-post", "pinyin", "hangul").
28 std::string id;
29
30 // Long name of the IME, which is used to specify the user-visible name.
31 base::string16 name;
32
33 // Medium name of the IME, which is same with short name in most cases, unless
34 // find in a table for medium length names.
35 base::string16 medium_name;
36
37 // Indicator of the IME (e.g., "US"). If indicator is empty, use the first two
38 // character in its preferred keyboard layout or language code (e.g., "ko",
39 // "ja", "en-US").
40 base::string16 short_name;
41 };
42
43 using IMEInfoList = std::vector<IMEInfo>;
44
45 struct ASH_EXPORT IMEPropertyInfo {
46 IMEPropertyInfo();
47 ~IMEPropertyInfo();
48
49 // True if the property is a selection item.
50 bool selected;
51
52 // The key which identifies the property, e.g. "InputMode.HalfWidthKatakana".
53 std::string key;
54
55 // The description of the property, e.g. "Switch to full punctuation mode",
56 // "Hiragana".
57 base::string16 name;
58 };
59
60 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>;
61
62 } // namespace ash
63
64 #endif // ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/hover_highlight_view.cc ('k') | ash/common/system/tray/ime_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698