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

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

Issue 312023002: Sync starting language and input method preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and dzhioev's comments Created 6 years, 4 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 | Annotate | Revision Log
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 CHROMEOS_IME_EXTENSION_IME_UTIL_H_ 5 #ifndef CHROMEOS_IME_EXTENSION_IME_UTIL_H_
6 #define CHROMEOS_IME_EXTENSION_IME_UTIL_H_ 6 #define CHROMEOS_IME_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Returns true if the |input_method| is a member of |extension_id| of extension 74 // Returns true if the |input_method| is a member of |extension_id| of extension
75 // IME, otherwise returns false. 75 // IME, otherwise returns false.
76 bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id, 76 bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id,
77 const std::string& extension_id); 77 const std::string& extension_id);
78 78
79 // Returns true if the |input_method_id| is the extension based xkb keyboard, 79 // Returns true if the |input_method_id| is the extension based xkb keyboard,
80 // otherwise returns false. 80 // otherwise returns false.
81 bool CHROMEOS_EXPORT IsKeyboardLayoutExtension( 81 bool CHROMEOS_EXPORT IsKeyboardLayoutExtension(
82 const std::string& input_method_id); 82 const std::string& input_method_id);
83 83
84 // Returns engine id from the extension-based InputMethodID for component
85 // IME extensions. This function does not check that |input_method_id| is
86 // installed.
87 std::string CHROMEOS_EXPORT GetEngineIDByInputMethodID(
Shu Chen 2014/08/07 14:58:51 You can remove this function now. The ToT now alre
michaelpg 2014/10/20 23:47:27 Acknowledged.
88 const std::string& input_method_id);
89
84 // Gets legacy xkb id (e.g. xkb:us::eng) from the new extension based xkb id 90 // Gets legacy xkb id (e.g. xkb:us::eng) from the new extension based xkb id
85 // (e.g. _comp_ime_...xkb:us::eng). If the given id is not prefixed with 91 // (e.g. _comp_ime_...xkb:us::eng). If the given id is not prefixed with
86 // 'xkb:', just return the same as the given id. 92 // 'xkb:', just return the same as the given id.
87 std::string CHROMEOS_EXPORT MaybeGetLegacyXkbId( 93 std::string CHROMEOS_EXPORT MaybeGetLegacyXkbId(
88 const std::string& input_method_id); 94 const std::string& input_method_id);
89 95
90 } // namespace extension_ime_util 96 } // namespace extension_ime_util
91 97
92 } // namespace chromeos 98 } // namespace chromeos
93 99
94 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_ 100 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698