Hide bottom bar on IME open event 18/86718/6
authorKamil Nowac <k.nowac@samsung.com>
Tue, 6 Sep 2016 13:29:33 +0000 (15:29 +0200)
committerKamil Nowa? <k.nowac@samsung.com>
Wed, 7 Sep 2016 05:54:55 +0000 (22:54 -0700)
[Issue]    http://suprem.sec.samsung.net/jira/browse/TWF-1799
[Problem]  Bottom bar is always shown
[Solution] Added hide event
[Verify]   Open IME -> bottom bar should be invisible
           Close IME ->  bottom bar should be visible

Change-Id: Id39347c0d0ba24920c758fcd2b9482956a93d9df

services/SimpleUI/SimpleUI.cpp
services/WebPageUI/WebPageUI.cpp
services/WebPageUI/WebPageUI.h
services/WebPageUI/edc/WebPageUI.edc

index f35689ddb62bd2b55d65ab6eb4edadef34ca8aaa..c2670decb5e682a842826a64dd236517f67f75a6 100755 (executable)
@@ -915,6 +915,7 @@ void SimpleUI::onUrlIMEOpened(void* data, Evas_Object*, void*)
 {
     BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
     SimpleUI* self = reinterpret_cast<SimpleUI*>(data);
+    self->m_webPageUI->showBottomBar(false);
     self->setwvIMEStatus(true);
 }
 
@@ -922,6 +923,7 @@ void SimpleUI::onUrlIMEClosed(void* data, Evas_Object*, void*)
 {
     BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
     SimpleUI* self = reinterpret_cast<SimpleUI*>(data);
+    self->m_webPageUI->showBottomBar(true);
     self->setwvIMEStatus(false);
 }
 #endif
index e6de84c649cb367668d50775762013a13ada720a..677a3368f6b229c49e893d3b9fbde06a4c80fe03 100755 (executable)
@@ -711,6 +711,15 @@ void WebPageUI::setContentFocus()
         getURIEntry().clearFocus();
 }
 
+void WebPageUI::showBottomBar(bool isShown)
+{
+    BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
+    if (isShown)
+        elm_object_signal_emit(m_mainLayout, "show,bottom", "");
+    else
+        elm_object_signal_emit(m_mainLayout, "hide,bottom", "");
+}
+
 void WebPageUI::_content_clicked(void *data, Evas_Object *, void *)
 {
     BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
index 8d9cdfb04cc47710763b227137a8035a074c8f6d..7c791c845dd5ceca7c79152b562ab9c8c72629b0 100755 (executable)
@@ -116,6 +116,7 @@ public:
     void mobileEntryFocused();
     void mobileEntryUnfocused();
     void setContentFocus();
+    void showBottomBar(bool isShown);
     static Eina_Bool _hideDelay(void *data);
     void setDesktopMode(bool desktopMode) {m_desktopMode = desktopMode;}
     bool getDesktopMode() { return m_desktopMode; }
index 3aaf483bc4342dabf2b6b603aebee4857a64a049..72c14b62f97c28ee790144ea4f75e93c147780f6 100644 (file)
@@ -256,12 +256,7 @@ collections { base_scale: 2.6;
                     rel2 { relative: 1.0 1.0; to: "bg"; }
                 }
                 description {
-                    state: "hidden_vertical" 0.0;
-                    inherit: "default" 0.0;
-                    rel1 {relative: 0.0 1.0; to:"bg";}
-                }
-                description {
-                    state: "hidden_landscape" 0.0;
+                    state: "hidden" 0.0;
                     inherit: "default" 0.0;
                     rel1 {relative: 0.0 1.0; to:"bg";}
                 }
@@ -385,6 +380,16 @@ collections { base_scale: 2.6;
                     action: STATE_SET "progress" 1.00;
                     target: "progress_bar";
                 }
+                program { name: "hide,bottom";
+                    signal: "hide,bottom";
+                    action: STATE_SET "hidden" 0.0;
+                    target: "bottom_toolbar";
+                }
+                program { name: "show,bottom";
+                    signal: "show,bottom";
+                    action: STATE_SET "default" 0.0;
+                    target: "bottom_toolbar";
+                }
             }
 
             #include "WebPageUIUrlHistoryList.edc"