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

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

Issue 12583012: Introduce IsMemberOfExtension function into ExtensionIMEUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 7 years, 8 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
« no previous file with comments | « no previous file | chromeos/ime/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 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 "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // Extension IME related utilities. 14 // Extension IME related utilities.
15 namespace extension_ime_util { 15 namespace extension_ime_util {
16 16
17 // Returns InputMethodID for |engine_id| in |extension_id|. 17 // Returns InputMethodID for |engine_id| in |extension_id|.
18 std::string CHROMEOS_EXPORT GetInputMethodID(const std::string& extension_id, 18 std::string CHROMEOS_EXPORT GetInputMethodID(const std::string& extension_id,
19 const std::string& engine_id); 19 const std::string& engine_id);
20 20
21 // Returns true if the |input_method_id| is extension ime. 21 // Returns true if the |input_method_id| is extension ime.
22 bool CHROMEOS_EXPORT IsExtensionIME(const std::string& input_method_id); 22 bool CHROMEOS_EXPORT IsExtensionIME(const std::string& input_method_id);
23 23
24 // Returns true if the |input_method| is member of |extension_id|, otherwise
25 // return false.
26 bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id,
27 const std::string& extension_id);
28
24 } // extension_ime_util 29 } // extension_ime_util
25 30
26 } // namespace chromeos 31 } // namespace chromeos
27 32
28 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_ 33 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/ime/extension_ime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698