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 #include "chromeos/ime/extension_ime_util.h" | 5 #include "ui/base/ime/chromeos/extension_ime_util.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 const char kExtensionIMEPrefix[] = "_ext_ime_"; | 13 const char kExtensionIMEPrefix[] = "_ext_ime_"; |
14 const int kExtensionIMEPrefixLength = | 14 const int kExtensionIMEPrefixLength = |
15 sizeof(kExtensionIMEPrefix) / sizeof(kExtensionIMEPrefix[0]) - 1; | 15 sizeof(kExtensionIMEPrefix) / sizeof(kExtensionIMEPrefix[0]) - 1; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 std::string MaybeGetLegacyXkbId(const std::string& input_method_id) { | 125 std::string MaybeGetLegacyXkbId(const std::string& input_method_id) { |
126 if (IsKeyboardLayoutExtension(input_method_id)) | 126 if (IsKeyboardLayoutExtension(input_method_id)) |
127 return GetComponentIDByInputMethodID(input_method_id); | 127 return GetComponentIDByInputMethodID(input_method_id); |
128 return input_method_id; | 128 return input_method_id; |
129 } | 129 } |
130 | 130 |
131 } // namespace extension_ime_util | 131 } // namespace extension_ime_util |
132 } // namespace chromeos | 132 } // namespace chromeos |
OLD | NEW |