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 019ea73..0a4f9c2 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 fa16a7c..6cf4fad 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 59c2af3..c0e06b9 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 e0ce513..8ae5afd 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 19ff123..317448a 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 817f5aa..69ed65b 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 04f48da..eff366b 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 4c16fca..9511c30 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;