summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2017-05-02 16:28:10 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2017-05-02 16:28:10 +0900
commitea8196e411c81db352e85800921fb621e151bb84 (patch)
tree49bf170dd806450c4575ff23cc0a68e0373baa4d /src/lib/ecore_imf/ecore_imf_context.c
parent2c16e586135741535a0a886c1163903a140d8517 (diff)
ecore_imf: Add ecore_imf_context_prediction_hint_set API
Summary: Added a new api to send the prediction hint string to IME. Test Plan: Tested in Tizen device Reviewers: woohyun, id213sin, jihoon Reviewed By: jihoon Subscribers: cedric, jsuya, z-wony, jpeg Differential Revision: https://phab.enlightenment.org/D4805
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r--src/lib/ecore_imf/ecore_imf_context.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c
index 961c4ae3c3..e7f1f67d68 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -1406,4 +1406,18 @@ ecore_imf_context_keyboard_mode_get(Ecore_IMF_Context *ctx)
1406 mode = ctx->klass->keyboard_mode_get(ctx); 1406 mode = ctx->klass->keyboard_mode_get(ctx);
1407 1407
1408 return mode; 1408 return mode;
1409}
1410
1411EAPI void
1412ecore_imf_context_prediction_hint_set(Ecore_IMF_Context *ctx, const char *prediction_hint)
1413{
1414 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1415 {
1416 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1417 "ecore_imf_context_prediction_hint_set");
1418 return;
1419 }
1420
1421 if (ctx->klass->prediction_hint_set)
1422 ctx->klass->prediction_hint_set(ctx, prediction_hint);
1409} \ No newline at end of file 1423} \ No newline at end of file