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

Side by Side Diff: ui/base/ime/chromeos/extension_ime_util.h

Issue 2919583002: chromeos: Move InputMethodUtil into //ui/base/ime/chromeos (Closed)
Patch Set: Created 3 years, 6 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 | « ui/base/ime/chromeos/DEPS ('k') | ui/base/ime/chromeos/extension_ime_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_
6 #define UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_ 6 #define UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 17 matching lines...) Expand all
28 const char kXkbExtensionId[] = "fgoepimhcoialccpbmpnnblemnepkkao"; 28 const char kXkbExtensionId[] = "fgoepimhcoialccpbmpnnblemnepkkao";
29 const char kM17nExtensionId[] = "jhffeifommiaekmbkkjlpmilogcfdohp"; 29 const char kM17nExtensionId[] = "jhffeifommiaekmbkkjlpmilogcfdohp";
30 const char kHangulExtensionId[] = "bdgdidmhaijohebebipajioienkglgfo"; 30 const char kHangulExtensionId[] = "bdgdidmhaijohebebipajioienkglgfo";
31 const char kMozcExtensionId[] = "bbaiamgfapehflhememkfglaehiobjnk"; 31 const char kMozcExtensionId[] = "bbaiamgfapehflhememkfglaehiobjnk";
32 const char kT13nExtensionId[] = "gjaehgfemfahhmlgpdfknkhdnemmolop"; 32 const char kT13nExtensionId[] = "gjaehgfemfahhmlgpdfknkhdnemmolop";
33 const char kChinesePinyinExtensionId[] = "cpgalbafkoofkjmaeonnfijgpfennjjn"; 33 const char kChinesePinyinExtensionId[] = "cpgalbafkoofkjmaeonnfijgpfennjjn";
34 const char kChineseZhuyinExtensionId[] = "ekbifjdfhkmdeeajnolmgdlmkllopefi"; 34 const char kChineseZhuyinExtensionId[] = "ekbifjdfhkmdeeajnolmgdlmkllopefi";
35 const char kChineseCangjieExtensionId[] = "aeebooiibjahgpgmhkeocbeekccfknbj"; 35 const char kChineseCangjieExtensionId[] = "aeebooiibjahgpgmhkeocbeekccfknbj";
36 #endif 36 #endif
37 37
38 // Extension id, path (relative to |chrome::DIR_RESOURCES|) and IME engine
39 // id for the builtin-in Braille IME extension.
40 UI_BASE_IME_EXPORT extern const char kBrailleImeExtensionId[];
41 UI_BASE_IME_EXPORT extern const char kBrailleImeExtensionPath[];
42 UI_BASE_IME_EXPORT extern const char kBrailleImeEngineId[];
43
38 // Returns InputMethodID for |engine_id| in |extension_id| of extension IME. 44 // Returns InputMethodID for |engine_id| in |extension_id| of extension IME.
39 // This function does not check |extension_id| is installed extension IME nor 45 // This function does not check |extension_id| is installed extension IME nor
40 // |engine_id| is really a member of |extension_id|. 46 // |engine_id| is really a member of |extension_id|.
41 std::string UI_BASE_IME_EXPORT 47 std::string UI_BASE_IME_EXPORT
42 GetInputMethodID(const std::string& extension_id, const std::string& engine_id); 48 GetInputMethodID(const std::string& extension_id, const std::string& engine_id);
43 49
44 // Returns InputMethodID for |engine_id| in |extension_id| of component 50 // Returns InputMethodID for |engine_id| in |extension_id| of component
45 // extension IME, This function does not check |extension_id| is component one 51 // extension IME, This function does not check |extension_id| is component one
46 // nor |engine_id| is really a member of |extension_id|. 52 // nor |engine_id| is really a member of |extension_id|.
47 std::string UI_BASE_IME_EXPORT 53 std::string UI_BASE_IME_EXPORT
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // (e.g. _comp_ime_...xkb:us::eng). If the given id is not prefixed with 97 // (e.g. _comp_ime_...xkb:us::eng). If the given id is not prefixed with
92 // 'xkb:', just return the same as the given id. 98 // 'xkb:', just return the same as the given id.
93 std::string UI_BASE_IME_EXPORT 99 std::string UI_BASE_IME_EXPORT
94 MaybeGetLegacyXkbId(const std::string& input_method_id); 100 MaybeGetLegacyXkbId(const std::string& input_method_id);
95 101
96 } // namespace extension_ime_util 102 } // namespace extension_ime_util
97 103
98 } // namespace chromeos 104 } // namespace chromeos
99 105
100 #endif // UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_ 106 #endif // UI_BASE_IME_CHROMEOS_EXTENSION_IME_UTIL_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/DEPS ('k') | ui/base/ime/chromeos/extension_ime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698