Add APIs for moving the floating input panel 38/139138/2
authorInHong Han <inhong1.han@samsung.com>
Thu, 6 Jul 2017 09:14:09 +0000 (18:14 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 25 Jul 2017 06:17:48 +0000 (06:17 +0000)
Change-Id: I50114b275bb953f2bd543168603ba988c21d93b0

src/sclcore.cpp
src/sclcore.h
src/sclcoreimpl.cpp
src/sclcoreimpl.h
src/sclcoreui-efl.cpp
src/sclcoreui-efl.h
src/sclcoreui.cpp
src/sclcoreui.h

index 019ea73088cb1304c9903177e9fbce03227909d0..0a4f9c23c0e1e3a1ff9a547a3e6c0d8367c66afb 100644 (file)
@@ -394,3 +394,10 @@ void CSCLCore::set_floating_mode(sclboolean floating_mode)
         m_impl->set_floating_mode(floating_mode);
     }
 }
+
+void CSCLCore::set_floating_drag_enabled(sclboolean enabled)
+{
+    if (m_impl) {
+        m_impl->set_floating_drag_enabled(enabled);
+    }
+}
\ No newline at end of file
index fa16a7cb7fa0537ada32490f1c6dd7ad507ef981..6cf4fad8ed2f0f61127159b25a404458545ca74e 100644 (file)
@@ -415,6 +415,11 @@ public:
      * @param[in] floating_mode Floating mode or not
      */
     void set_floating_mode(sclboolean floating_mode);
+
+    /**
+     * @brief Request to allow the user to move floating ISE.
+     */
+    void set_floating_drag_enabled(sclboolean enabled);
 private:
     CSCLCoreImpl *m_impl;
 };
index 59c2af3bafe0404687a77de196b6df749e41bc5d..c0e06b963ed32c26d696019966fb980d88f9b663 100644 (file)
@@ -396,3 +396,8 @@ void CSCLCoreImpl::set_floating_mode(sclboolean floating_mode)
 {
     m_core_ui.set_floating_mode(floating_mode);
 }
+
+void CSCLCoreImpl::set_floating_drag_enabled(sclboolean enabled)
+{
+    m_core_ui.set_floating_drag_enabled(enabled);
+}
\ No newline at end of file
index e0ce5134b3b531ecb75f3c4e860656b76397d3fb..8ae5afd9a71010065fec8e8c4c7ae5558dfec76b 100644 (file)
@@ -109,6 +109,7 @@ public:
     void request_ise_hide();
     void commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types);
     void set_floating_mode(sclboolean floating_mode);
+    void set_floating_drag_enabled(sclboolean enabled);
 private:
     ISCLCoreEventCallback *m_event_callback;
 
index 19ff1233ebae77d92035679967dd91dd9240dc95..317448ac21b848ec2534d31bbfae682211a37cba 100644 (file)
@@ -143,6 +143,12 @@ void CSCLCoreUIEFL::set_floating_mode(sclboolean floating_mode)
         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);
+}
+
 static int language_changed_cb(void *event_info, void* data)
 {
     char clang[_POSIX_PATH_MAX] = {0};
index 817f5aa17b1f491b4170269a03b660381c8ec292..69ed65bde2ed552e12dd1d25327851d82a23bf61 100644 (file)
@@ -63,6 +63,7 @@ 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);
 private:
     sclboolean m_initialized;
 
index 04f48da088562a293d1f053b006871de158aef6e..eff366b4ca3a761aad4ed29eb98a6f4b5b82ebfd 100644 (file)
@@ -139,3 +139,10 @@ void CSCLCoreUI::set_floating_mode(sclboolean floating_mode)
         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);
+    }
+}
\ No newline at end of file
index 4c16fca0dc3ea7461c1d21d51484a843f3e3de8f..9511c3051c60f062e21669c9123703a928305ce5 100644 (file)
@@ -95,6 +95,11 @@ public:
      */
     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);
+
 protected:
     std::string m_backend_identifier;