Add interface to set floating mode 03/132403/5
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 5 Jun 2017 02:00:57 +0000 (11:00 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 19 Jun 2017 09:32:13 +0000 (18:32 +0900)
Change-Id: Ie4d1a954331c745184606a329b233da7524291c9
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
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 51ab9343e2402796c06e88acaf9f345380da9312..f4d4317a4ba41f7d78e590c41a77c4d75004a201 100644 (file)
@@ -380,3 +380,10 @@ void CSCLCore::commit_content(const sclchar *content, const sclchar *description
         m_impl->commit_content(content, description, mime_types);
     }
 }
+
+void CSCLCore::set_floating_mode(sclboolean floating_mode)
+{
+    if (m_impl) {
+        m_impl->set_floating_mode(floating_mode);
+    }
+}
index 81fc80756919537c8be9fc77480cf5f15f157739..62471de03aecd3a6eb2f867b3ee2cb859f30e0ff 100644 (file)
@@ -400,6 +400,13 @@ public:
      * @param[in] mime_types a MIME type string.
      */
     void commit_content(const sclchar *content, const sclchar *description, const sclchar *mime_types);
+
+    /**
+     * @brief Request to set floating mode.
+     *
+     * @param[in] floating_mode Floating mode or not
+     */
+    void set_floating_mode(sclboolean floating_mode);
 private:
     CSCLCoreImpl *m_impl;
 };
index 76d3f14f61d5354dc9c28f7f7191586307cc5869..d81847c5fa5b3b934f0e337f0edc5516b655e845 100644 (file)
@@ -387,3 +387,8 @@ void CSCLCoreImpl::commit_content(const sclchar *content, const sclchar *descrip
 {
     m_connection.commit_content(content, description, mime_types);
 }
+
+void CSCLCoreImpl::set_floating_mode(sclboolean floating_mode)
+{
+    m_core_ui.set_floating_mode(floating_mode);
+}
index a7b1357639a9983930d918c379d982226810cc3c..7e56e34073c6058dfbbb2130f1bc97fa5ee073db 100644 (file)
@@ -108,6 +108,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);
 private:
     ISCLCoreEventCallback *m_event_callback;
 
index 692a17256b395cb57da8f54bd2f3e1e0fb2dfb0c..468cb87d7563ca5f99930da2343d8ed7e6b9525d 100644 (file)
@@ -527,6 +527,12 @@ void CSCLCoreUIEFL::set_keyboard_size_hints(SclSize portrait, SclSize landscape)
 #endif
 }
 
+void CSCLCoreUIEFL::set_floating_mode(sclboolean floating_mode)
+{
+    if (wlkb.ips)
+        wl_input_panel_surface_set_floating_panel(wlkb.ips, floating_mode);
+}
+
 static int language_changed_cb(void *event_info, void* data)
 {
     char clang[_POSIX_PATH_MAX] = {0};
index db884af471715696c5058afedbf72c96fdf014b4..2b499a9e3de5721fcde8938495ae01a4da2901aa 100644 (file)
@@ -127,6 +127,8 @@ public:
     void set_screen_rotation_degree(int degree);
 
     void process_keyboard_ui_state_change(KEYBOARD_UI_STATE state);
+
+    void set_floating_mode(sclboolean floating_mode);
 protected:
     virtual sclboolean prepare(sclwindow main_window);
 
index 0200314851fd1f221b2130c9b3608c44216dbbbf..b746ed42f54669120fe4b7b42683eda170cb5371 100644 (file)
@@ -123,3 +123,10 @@ void CSCLCoreUI::process_keyboard_ui_state_change(KEYBOARD_UI_STATE state)
         m_impl->process_keyboard_ui_state_change(state);
     }
 }
+
+void CSCLCoreUI::set_floating_mode(sclboolean floating_mode)
+{
+    if (m_impl) {
+        m_impl->set_floating_mode(floating_mode);
+    }
+}
index a55a1e1a3e9fa34e0573d947586e03416a66f226..bc91d804f5584643b226ae64909929f2d6932350 100644 (file)
@@ -88,6 +88,11 @@ 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);
+
 protected:
     std::string m_backend_identifier;