summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_input_method_api.h
diff options
context:
space:
mode:
authoraltimofeev@chromium.org <altimofeev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 07:21:01 +0000
committeraltimofeev@chromium.org <altimofeev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 07:21:01 +0000
commitbe5bd57480e654424c3f3fbd3e3ef0a66ff899f6 (patch)
tree52d0c6db05eacd20119fc53073eca14ed7db4fee /chrome/browser/extensions/extension_input_method_api.h
parente7ca1878add521afcea1cad630e986432771322d (diff)
downloadchromium_src-be5bd57480e654424c3f3fbd3e3ef0a66ff899f6.zip
chromium_src-be5bd57480e654424c3f3fbd3e3ef0a66ff899f6.tar.gz
chromium_src-be5bd57480e654424c3f3fbd3e3ef0a66ff899f6.tar.bz2
Adds extension API for getting/observing input method.
API includes async input method getter and onChange event. BUG=chromium-os:16735 TEST=InputMethodApiBasic browser_test Review URL: http://codereview.chromium.org/7311005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_input_method_api.h')
-rw-r--r--chrome/browser/extensions/extension_input_method_api.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_input_method_api.h b/chrome/browser/extensions/extension_input_method_api.h
new file mode 100644
index 0000000..c30510c
--- /dev/null
+++ b/chrome/browser/extensions/extension_input_method_api.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_METHOD_API_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_METHOD_API_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/extensions/extension_function.h"
+
+// Implements the experimental.inputMethod.get method.
+class GetInputMethodFunction : public SyncExtensionFunction {
+ public:
+ GetInputMethodFunction();
+
+ protected:
+ virtual ~GetInputMethodFunction();
+
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION_NAME("inputMethodPrivate.get");
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_METHOD_API_H_