| 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_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" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // If you want to check |input_method_id| is whitelisted component extension | 41 // If you want to check |input_method_id| is whitelisted component extension |
| 42 // IME, please use ComponentExtensionIMEManager::IsWhitelisted instead. | 42 // IME, please use ComponentExtensionIMEManager::IsWhitelisted instead. |
| 43 bool CHROMEOS_EXPORT IsComponentExtensionIME( | 43 bool CHROMEOS_EXPORT IsComponentExtensionIME( |
| 44 const std::string& input_method_id); | 44 const std::string& input_method_id); |
| 45 | 45 |
| 46 // Returns true if the |input_method| is a member of |extension_id| of extension | 46 // Returns true if the |input_method| is a member of |extension_id| of extension |
| 47 // IME, otherwise returns false. | 47 // IME, otherwise returns false. |
| 48 bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id, | 48 bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id, |
| 49 const std::string& extension_id); | 49 const std::string& extension_id); |
| 50 | 50 |
| 51 // Returns true if the |input_method_id| is the extension based xkb keyboard, |
| 52 // otherwise returns false. |
| 53 bool CHROMEOS_EXPORT IsKeyboardLayoutExtension( |
| 54 const std::string& input_method_id); |
| 55 |
| 51 } // namespace extension_ime_util | 56 } // namespace extension_ime_util |
| 52 | 57 |
| 53 } // namespace chromeos | 58 } // namespace chromeos |
| 54 | 59 |
| 55 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_ | 60 #endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_ |
| OLD | NEW |