Index: chrome/browser/chromeos/extensions/input_method_api.h |
diff --git a/chrome/browser/chromeos/extensions/input_method_api.h b/chrome/browser/chromeos/extensions/input_method_api.h |
index d7a4d7fdc2548dad5a2e6eab76f7e08d3f370da8..796aee614feee95ac31d653639e6f82c44a8c822 100644 |
--- a/chrome/browser/chromeos/extensions/input_method_api.h |
+++ b/chrome/browser/chromeos/extensions/input_method_api.h |
@@ -17,18 +17,49 @@ class ExtensionInputMethodEventRouter; |
namespace extensions { |
-// Implements the experimental.inputMethod.get method. |
-class GetInputMethodFunction : public SyncExtensionFunction { |
+// Implements the inputMethodPrivate.getCurrentInputMethod method. |
+class GetCurrentInputMethodFunction : public SyncExtensionFunction { |
public: |
- GetInputMethodFunction(); |
+ GetCurrentInputMethodFunction() {} |
protected: |
- virtual ~GetInputMethodFunction(); |
+ virtual ~GetCurrentInputMethodFunction() {} |
virtual bool RunSync() OVERRIDE; |
private: |
- DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.get", INPUTMETHODPRIVATE_GET) |
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.getCurrentInputMethod", |
+ INPUTMETHODPRIVATE_GETCURRENTINPUTMETHOD) |
+}; |
+ |
+// Implements the inputMethodPrivate.setCurrentInputMethod method. |
+class SetCurrentInputMethodFunction : public SyncExtensionFunction { |
+ public: |
+ SetCurrentInputMethodFunction() {} |
+ |
+ protected: |
+ virtual ~SetCurrentInputMethodFunction() {} |
+ |
+ virtual bool RunSync() OVERRIDE; |
+ |
+ private: |
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.setCurrentInputMethod", |
+ INPUTMETHODPRIVATE_SETCURRENTINPUTMETHOD) |
+}; |
+ |
+// Implements the inputMethodPrivate.getInputMethods method. |
+class GetInputMethodsFunction : public SyncExtensionFunction { |
+ public: |
+ GetInputMethodsFunction() {} |
+ |
+ protected: |
+ virtual ~GetInputMethodsFunction() {} |
+ |
+ virtual bool RunSync() OVERRIDE; |
+ |
+ private: |
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.getInputMethods", |
+ INPUTMETHODPRIVATE_GETINPUTMETHODS) |
}; |
// Notify the initialization is done to input method engine. |