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

Unified Diff: chrome/browser/chromeos/extensions/input_method_api.h

Issue 305533002: Adds IME switching private APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/input_method_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..77f84e849e6ec2c2e5bbcf10cae8768422e8b61e 100644
--- a/chrome/browser/chromeos/extensions/input_method_api.h
+++ b/chrome/browser/chromeos/extensions/input_method_api.h
@@ -17,34 +17,49 @@ class ExtensionInputMethodEventRouter;
namespace extensions {
-// Implements the experimental.inputMethod.get method.
-class GetInputMethodFunction : public SyncExtensionFunction {
+// Implements the inputMethodPrivate.getCurrentInputMethod method.
+class GetCurrentInputMethodFunction : public UIThreadExtensionFunction {
public:
- GetInputMethodFunction();
+ GetCurrentInputMethodFunction() {}
protected:
- virtual ~GetInputMethodFunction();
+ virtual ~GetCurrentInputMethodFunction() {}
- virtual bool RunSync() OVERRIDE;
+ virtual ResponseAction Run() OVERRIDE;
private:
- DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.get", INPUTMETHODPRIVATE_GET)
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.getCurrentInputMethod",
+ INPUTMETHODPRIVATE_GETCURRENTINPUTMETHOD)
};
-// Notify the initialization is done to input method engine.
-// TODO(nona): remove this function.
-class StartImeFunction : public SyncExtensionFunction {
+// Implements the inputMethodPrivate.setCurrentInputMethod method.
+class SetCurrentInputMethodFunction : public UIThreadExtensionFunction {
public:
- StartImeFunction();
+ SetCurrentInputMethodFunction() {}
protected:
- virtual ~StartImeFunction();
+ virtual ~SetCurrentInputMethodFunction() {}
- virtual bool RunSync() OVERRIDE;
+ virtual ResponseAction Run() OVERRIDE;
private:
- DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.startIme",
- INPUTMETHODPRIVATE_STARTIME)
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.setCurrentInputMethod",
+ INPUTMETHODPRIVATE_SETCURRENTINPUTMETHOD)
+};
+
+// Implements the inputMethodPrivate.getInputMethods method.
+class GetInputMethodsFunction : public UIThreadExtensionFunction {
+ public:
+ GetInputMethodsFunction() {}
+
+ protected:
+ virtual ~GetInputMethodsFunction() {}
+
+ virtual ResponseAction Run() OVERRIDE;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.getInputMethods",
+ INPUTMETHODPRIVATE_GETINPUTMETHODS)
};
class InputMethodAPI : public BrowserContextKeyedAPI,
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/input_method_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698