From: Ji-hoon Lee Date: Tue, 1 Nov 2016 06:33:36 +0000 (+0900) Subject: Added flush() function to IMEngineInstanceBase X-Git-Tag: accepted/tizen/common/20161102.121649~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d207f3b5a59938204a49d2e6d49e4d02a8a0c71;p=platform%2Fcore%2Fuifw%2Fisf.git Added flush() function to IMEngineInstanceBase Change-Id: I4e8faa9b97354316dab84cd322d53a44ca2677e5 --- diff --git a/ism/src/scim_helper.cpp b/ism/src/scim_helper.cpp index 1962a2d..95d9222 100644 --- a/ism/src/scim_helper.cpp +++ b/ism/src/scim_helper.cpp @@ -2495,6 +2495,18 @@ HelperAgent::reset_keyboard_ise (void) const } /** + * @brief Request to flush keyboard ISE. + */ +void +HelperAgent::flush_keyboard_ise (void) const +{ + LOGD (""); + if (!m_impl->si.null ()) { + m_impl->si->flush (); + } +} + +/** * @brief Request panel to hide ISE. */ void diff --git a/ism/src/scim_helper.h b/ism/src/scim_helper.h index 269730e..00bd158 100644 --- a/ism/src/scim_helper.h +++ b/ism/src/scim_helper.h @@ -738,6 +738,11 @@ public: void reset_keyboard_ise (void) const; /** + * @brief Request to flush keyboard ISE. + */ + void flush_keyboard_ise (void) const; + + /** * @brief Send a private command to an application * * @param command The private command sent from IME. diff --git a/ism/src/scim_imengine.cpp b/ism/src/scim_imengine.cpp index 2f0696d..f49321d 100644 --- a/ism/src/scim_imengine.cpp +++ b/ism/src/scim_imengine.cpp @@ -433,6 +433,11 @@ IMEngineInstanceBase::update_bidi_direction (unsigned int bidi_direction) } void +IMEngineInstanceBase::flush () +{ +} + +void IMEngineInstanceBase::update_candidate_item_layout (const std::vector &row_items) { } diff --git a/ism/src/scim_imengine.h b/ism/src/scim_imengine.h index afb64c3..ba88201 100644 --- a/ism/src/scim_imengine.h +++ b/ism/src/scim_imengine.h @@ -770,6 +770,14 @@ public: */ virtual void update_bidi_direction (unsigned int bidi_direction); + /** + * @brief Flushes the internal state of engine instance. + * + * All status of this engine instance should be flushed, + * including the working encoding. + */ + virtual void flush (); + protected: /** * @name Signal activation functions