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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.h

Issue 1657593007: Implement chrome.input.ime.setComposition/commitText API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use Xxx::Results::Create(). Created 4 years, 10 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
Index: chrome/browser/extensions/api/input_ime/input_ime_api.h
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.h b/chrome/browser/extensions/api/input_ime/input_ime_api.h
index 011916f7b04505e06eea6a79a0dba8bf5ccc25fa..d16275d35a319d8bd8f011ce93b0740664cd44db 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.h
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.h
@@ -128,6 +128,29 @@ class InputImeKeyEventHandledFunction : public UIThreadExtensionFunction {
ResponseAction Run() override;
};
+class InputImeSetCompositionFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("input.ime.setComposition",
+ INPUT_IME_SETCOMPOSITION)
+
+ protected:
+ ~InputImeSetCompositionFunction() override {}
+
+ // UIThreadExtensionFunction:
+ ResponseAction Run() override;
+};
+
+class InputImeCommitTextFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("input.ime.commitText", INPUT_IME_COMMITTEXT)
+
+ protected:
+ ~InputImeCommitTextFunction() override {}
+
+ // UIThreadExtensionFunction:
+ ResponseAction Run() override;
+};
+
class InputImeAPI : public BrowserContextKeyedAPI,
public ExtensionRegistryObserver,
public EventRouter::Observer {
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_engine.cc ('k') | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698