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

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

Issue 1656083003: Adds the input method private API to allow the component IME extension to change the XKB layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 11 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 40b1e400f67b137db6a95e57b5a1d4f4fa8cf0f4..8b8b442e926d20e0d01db380056d1a3a7fb3b157 100644
--- a/chrome/browser/chromeos/extensions/input_method_api.h
+++ b/chrome/browser/chromeos/extensions/input_method_api.h
@@ -139,6 +139,23 @@ class InputMethodPrivateGetEncryptSyncEnabledFunction
DISALLOW_COPY_AND_ASSIGN(InputMethodPrivateGetEncryptSyncEnabledFunction);
};
+// Implements the inputMethodPrivate.setXkbLayout method.
+class InputMethodPrivateSetXkbLayoutFunction
+ : public UIThreadExtensionFunction {
+ public:
+ InputMethodPrivateSetXkbLayoutFunction() {}
+
+ protected:
+ ~InputMethodPrivateSetXkbLayoutFunction() override {}
+
+ ResponseAction Run() override;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.setXkbLayout",
+ INPUTMETHODPRIVATE_SETXKBLAYOUT)
+ DISALLOW_COPY_AND_ASSIGN(InputMethodPrivateSetXkbLayoutFunction);
+};
+
class InputMethodAPI : public BrowserContextKeyedAPI,
public extensions::EventRouter::Observer {
public:
« 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