Modified to deliver floating IME requests by ISF 91/255891/1
authorInHong Han <inhong1.han@samsung.com>
Thu, 25 Mar 2021 01:04:29 +0000 (10:04 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 25 Mar 2021 01:13:04 +0000 (10:13 +0900)
Change-Id: I682876d1dfc82fa5fffbfb5a4246379d82126fdb

src/sclconnection-isf.cpp
src/sclconnection-isf.h
src/sclconnection.cpp
src/sclconnection.h
src/sclcoreimpl.cpp
src/sclcoreui-efl.cpp
src/sclcoreui-efl.h
src/sclcoreui.cpp
src/sclcoreui.h

index 667a1e3..2e62e28 100644 (file)
@@ -1478,6 +1478,20 @@ void CSCLConnectionISF::send_key_event_processing_result(scim::KeyEvent &key, sc
     }
 }
 
+void CSCLConnectionISF::set_floating_mode(sclboolean floating_mode)
+{
+    if (m_initialized) {
+        m_helper_agent.set_floating_mode(floating_mode);
+    }
+}
+
+void CSCLConnectionISF::set_floating_drag_enabled(sclboolean enabled)
+{
+    if (m_initialized) {
+        m_helper_agent.set_floating_drag_enabled(enabled);
+    }
+}
+
 extern "C"
 {
     EXAPI void scim_module_init(void) {
index dc67c5e..1d1f847 100644 (file)
@@ -99,6 +99,8 @@ public:
     void set_candidate_style(scim::ISF_CANDIDATE_PORTRAIT_LINE_T portrait_line, scim::ISF_CANDIDATE_MODE_T mode);
     void set_engine_loader_flag(sclboolean flag);
     void send_key_event_processing_result(scim::KeyEvent &key, sclu32 serial, sclboolean is_success);
+    void set_floating_mode(sclboolean floating_mode);
+    void set_floating_drag_enabled(sclboolean enabled);
 private:
     sclboolean m_initialized;
 
index 561dfc2..7e8be62 100644 (file)
@@ -441,4 +441,18 @@ void CSCLConnection::send_key_event_processing_result(scim::KeyEvent &key, sclu3
     if (m_impl) {
         m_impl->send_key_event_processing_result(key, serial, is_success);
     }
+}
+
+void CSCLConnection::set_floating_mode(sclboolean floating_mode)
+{
+    if (m_impl) {
+        m_impl->set_floating_mode(floating_mode);
+    }
+}
+
+void CSCLConnection::set_floating_drag_enabled(sclboolean enabled)
+{
+    if (m_impl) {
+        m_impl->set_floating_drag_enabled(enabled);
+    }
 }
\ No newline at end of file
index db4656e..80a5722 100644 (file)
@@ -105,6 +105,8 @@ public:
     virtual void set_candidate_style(scim::ISF_CANDIDATE_PORTRAIT_LINE_T portrait_line, scim::ISF_CANDIDATE_MODE_T mode);
     virtual void set_engine_loader_flag(sclboolean flag);
     virtual void send_key_event_processing_result(scim::KeyEvent &key, sclu32 serial, sclboolean is_success);
+    virtual void set_floating_mode(sclboolean floating_mode);
+    virtual void set_floating_drag_enabled(sclboolean enabled);
 protected:
     std::string m_backend_identifier;
 
index 9d0d7bb..5876aab 100644 (file)
@@ -415,12 +415,12 @@ void CSCLCoreImpl::commit_content(const sclchar *content, const sclchar *descrip
 
 void CSCLCoreImpl::set_floating_mode(sclboolean floating_mode)
 {
-    m_core_ui.set_floating_mode(floating_mode);
+    m_connection.set_floating_mode(floating_mode);
 }
 
 void CSCLCoreImpl::set_floating_drag_enabled(sclboolean enabled)
 {
-    m_core_ui.set_floating_drag_enabled(enabled);
+    m_connection.set_floating_drag_enabled(enabled);
 }
 
 void CSCLCoreImpl::set_window_creation_defer_flag(sclboolean flag)
index 0140baa..3d3a157 100644 (file)
@@ -150,18 +150,6 @@ void CSCLCoreUIEFL::set_keyboard_size_hints(SclSize portrait, SclSize landscape)
     m_landscape_size = landscape;
 }
 
-void CSCLCoreUIEFL::set_floating_mode(sclboolean floating_mode)
-{
-    if (wlkb.ips)
-        wl_input_panel_surface_set_floating_panel(wlkb.ips, floating_mode);
-}
-
-void CSCLCoreUIEFL::set_floating_drag_enabled(sclboolean enabled)
-{
-    if (wlkb.ips)
-        wl_input_panel_surface_set_floating_drag_enabled(wlkb.ips, enabled);
-}
-
 void CSCLCoreUIEFL::update_keyboard_geometry(SclSize portrait, SclSize landscape)
 {
     Evas_Object *main_window = NATIVE_WINDOW_CAST(m_main_window);
index 7358590..df11037 100644 (file)
@@ -62,9 +62,6 @@ public:
 
     void process_keyboard_ui_state_change(KEYBOARD_UI_STATE state);
 
-    void set_floating_mode(sclboolean floating_mode);
-    void set_floating_drag_enabled(sclboolean enabled);
-
     void update_keyboard_geometry(SclSize portrait, SclSize landscape);
     void get_keyboard_size(SclSize *portrait, SclSize *landscape);
 private:
index e688166..8fa0e26 100644 (file)
@@ -140,20 +140,6 @@ void CSCLCoreUI::process_keyboard_ui_state_change(KEYBOARD_UI_STATE state)
     }
 }
 
-void CSCLCoreUI::set_floating_mode(sclboolean floating_mode)
-{
-    if (m_impl) {
-        m_impl->set_floating_mode(floating_mode);
-    }
-}
-
-void CSCLCoreUI::set_floating_drag_enabled(sclboolean enabled)
-{
-    if (m_impl) {
-        m_impl->set_floating_drag_enabled(enabled);
-    }
-}
-
 void CSCLCoreUI::update_keyboard_geometry(SclSize portrait, SclSize landscape)
 {
     if (m_impl) {
index 724c7e1..738c985 100644 (file)
@@ -102,16 +102,6 @@ public:
     virtual void process_keyboard_ui_state_change(KEYBOARD_UI_STATE state);
 
     /**
-     * @brief Requests to set floating mode
-     */
-    virtual void set_floating_mode(sclboolean floating_mode);
-
-    /**
-     * @brief Request to allow the user to move floating ISE
-     */
-    virtual void set_floating_drag_enabled(sclboolean enabled);
-
-    /**
      * @brief Requests to update the keyboard window's geometry
      */
     virtual void update_keyboard_geometry(SclSize portrait, SclSize landscape);