OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ |
6 #define CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ | 6 #define CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 const GURL& input_view_url() const { return input_view_url_; } | 40 const GURL& input_view_url() const { return input_view_url_; } |
41 const std::vector<std::string>& keyboard_layouts() const { | 41 const std::vector<std::string>& keyboard_layouts() const { |
42 return keyboard_layouts_; | 42 return keyboard_layouts_; |
43 } | 43 } |
44 | 44 |
45 bool is_login_keyboard() const { return is_login_keyboard_; } | 45 bool is_login_keyboard() const { return is_login_keyboard_; } |
46 | 46 |
47 // Returns preferred keyboard layout. | 47 // Returns preferred keyboard layout. |
48 std::string GetPreferredKeyboardLayout() const; | 48 std::string GetPreferredKeyboardLayout() const; |
49 | 49 |
| 50 // Returns the indicator text of this input method. |
| 51 std::string GetIndicator() const; |
| 52 |
50 private: | 53 private: |
51 // An ID that identifies an input method engine (e.g., "t:latn-post", | 54 // An ID that identifies an input method engine (e.g., "t:latn-post", |
52 // "pinyin", "hangul"). | 55 // "pinyin", "hangul"). |
53 std::string id_; | 56 std::string id_; |
54 | 57 |
55 // A name used to specify the user-visible name of this input method. It is | 58 // A name used to specify the user-visible name of this input method. It is |
56 // only used by extension IMEs, and should be blank for internal IMEs. | 59 // only used by extension IMEs, and should be blank for internal IMEs. |
57 std::string name_; | 60 std::string name_; |
58 | 61 |
59 // A preferred physical keyboard layout for the input method (e.g., "us", | 62 // A preferred physical keyboard layout for the input method (e.g., "us", |
(...skipping 20 matching lines...) Expand all Loading... |
80 // This field is valid only for input method extension. | 83 // This field is valid only for input method extension. |
81 GURL input_view_url_; | 84 GURL input_view_url_; |
82 }; | 85 }; |
83 | 86 |
84 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; | 87 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; |
85 | 88 |
86 } // namespace input_method | 89 } // namespace input_method |
87 } // namespace chromeos | 90 } // namespace chromeos |
88 | 91 |
89 #endif // CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ | 92 #endif // CHROMEOS_IME_INPUT_METHOD_DESCRIPTOR_H_ |
OLD | NEW |