OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 | 15 |
16 struct ASH_EXPORT IMEInfo { | 16 struct ASH_EXPORT IMEInfo { |
17 IMEInfo(); | 17 IMEInfo(); |
18 IMEInfo(bool selected, | |
James Cook
2016/08/24 16:03:53
nit: Don't change this. Using the members explicit
Azure Wei
2016/08/25 02:10:44
Removed this constructor.
| |
19 bool third_party, | |
20 const std::string& id, | |
21 const std::string& name, | |
22 const std::string& medium_name, | |
23 const std::string& short_name); | |
24 | |
18 IMEInfo(const IMEInfo& other); | 25 IMEInfo(const IMEInfo& other); |
19 ~IMEInfo(); | 26 ~IMEInfo(); |
20 | 27 |
21 // True if the IME the current IME. | 28 // True if the IME the current IME. |
22 bool selected; | 29 bool selected; |
23 | 30 |
24 // True if the IME is a third-party extension. | 31 // True if the IME is a third-party extension. |
25 bool third_party; | 32 bool third_party; |
26 | 33 |
27 // ID that identifies the IME (e.g., "t:latn-post", "pinyin", "hangul"). | 34 // ID that identifies the IME (e.g., "t:latn-post", "pinyin", "hangul"). |
(...skipping 27 matching lines...) Expand all Loading... | |
55 // The description of the property, e.g. "Switch to full punctuation mode", | 62 // The description of the property, e.g. "Switch to full punctuation mode", |
56 // "Hiragana". | 63 // "Hiragana". |
57 base::string16 name; | 64 base::string16 name; |
58 }; | 65 }; |
59 | 66 |
60 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>; | 67 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>; |
61 | 68 |
62 } // namespace ash | 69 } // namespace ash |
63 | 70 |
64 #endif // ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ | 71 #endif // ASH_COMMON_SYSTEM_TRAY_IME_INFO_H_ |
OLD | NEW |