summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/dev/text_input_dev.h
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-16 05:27:49 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-16 05:27:49 +0000
commitcb656de64b8e198c1685fa3bd2990f4d50977a03 (patch)
tree7291276f34be9861462aa452fcd98d39a053c590 /ppapi/cpp/dev/text_input_dev.h
parentbd9d89195617ab132fe61171bdd93a3ab949ae35 (diff)
downloadchromium_src-cb656de64b8e198c1685fa3bd2990f4d50977a03.zip
chromium_src-cb656de64b8e198c1685fa3bd2990f4d50977a03.tar.gz
chromium_src-cb656de64b8e198c1685fa3bd2990f4d50977a03.tar.bz2
Declarations for Pepper IME API.
BUG=59425 TEST=Check that ppapi_tests compile. This change list is the first part for adding IME support for PPAPI. For effectiveness of reviewing, I'll split the rather large change into three parts: (*1) Header files declaring IME API. (2) Boilerplate code for proxy & thunk stuff. (3) Actual implementation in webkit/plugin/ppapi/* and content/renderer/*. Review URL: http://codereview.chromium.org/7882004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/dev/text_input_dev.h')
-rw-r--r--ppapi/cpp/dev/text_input_dev.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ppapi/cpp/dev/text_input_dev.h b/ppapi/cpp/dev/text_input_dev.h
new file mode 100644
index 0000000..2283bf7
--- /dev/null
+++ b/ppapi/cpp/dev/text_input_dev.h
@@ -0,0 +1,33 @@
+// 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 PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_
+#define PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_
+
+#include "ppapi/c/dev/ppb_text_input_dev.h"
+
+/// @file
+/// This file defines the API for controlling text input methods.
+namespace pp {
+
+class Instance;
+class Rect;
+
+class TextInput_Dev {
+ public:
+ explicit TextInput_Dev(Instance* instance);
+ virtual ~TextInput_Dev();
+
+ void SetTextInputType(PP_TextInput_Type type);
+ void UpdateCaretPosition(const Rect& caret, const Rect& bounding_box);
+ void ConfirmCompositionText();
+ void CancelCompositionText();
+
+ private:
+ Instance* instance_;
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_DEV_TEXT_INPUT_DEV_H_