Fix logs
authorChoi Munseok <ms47.choi@samsung.com>
Sun, 24 Mar 2013 07:13:21 +0000 (16:13 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Sun, 24 Mar 2013 07:13:21 +0000 (16:13 +0900)
Change-Id: I69de04249f00d5efb48f11d47d95c39d4336ed73
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp
src/ui/FUi_OrientationAgent.cpp
src/ui/FUi_Window.cpp

index f598b09..1435eb1 100644 (file)
@@ -102,7 +102,7 @@ OnWindowStateChanged(Ecore_Evas* pEcoreEvas)
 
        Ecore_X_Window targetWin = (Ecore_X_Window) ecore_evas_window_get(pEcoreEvas);
 
-       SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x] OnWindowStateChanged is called.", targetWin);
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] OnWindowStateChanged is called.", targetWin);
 
        int winCount = pControlManager->GetWindowCount();
        for (int i = 0; i < winCount; i++)
@@ -2245,7 +2245,7 @@ _EcoreEvas::SetWindowPreferredRotation(const _Window& window, int rotation)
        }
 
        Ecore_X_Window win = (Ecore_X_Window) ecore_evas_window_get(pLayer->GetEcoreEvas());
-       SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x] Set window preferred rotation(%d).", win, rotation);
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set window preferred rotation(%d).", win, rotation);
        ecore_evas_wm_rotation_preferred_rotation_set(pLayer->GetEcoreEvas(), rotation);
 }
 
@@ -2259,7 +2259,7 @@ _EcoreEvas::SetWindowAvailabledRotation(const _Window& window, int* rotations, u
        }
 
        Ecore_X_Window win = (Ecore_X_Window) ecore_evas_window_get(pLayer->GetEcoreEvas());
-       SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x] Set window available rotation(%d).", win, count);
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set window available rotation(%d).", win, count);
        ecore_evas_wm_rotation_available_rotations_set(pLayer->GetEcoreEvas(), rotations, count);
 }
 
index 4a12c4c..5d81bfa 100644 (file)
@@ -192,7 +192,7 @@ _OrientationAgent::Update(bool draw)
                                if (pWindow)
                                {
                                        Rectangle bounds = pWindow->GetBounds();
-                                       SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x, %d, %d, %d, %d, Form] Set window rotation with mode(%d).", 
+                                       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d, Form] Set window rotation with mode(%d).", 
                                                pWindow->GetNativeHandle(), bounds.x, bounds.y, bounds.width, bounds.height, __mode);
                                        SetRotation(*pWindow, __mode);
                                }
@@ -221,7 +221,7 @@ _OrientationAgent::Update(bool draw)
                        if (childCount == 0)
                        {
                                Rectangle bounds = pFrame->GetBounds();
-                               SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x, %d, %d, %d, %d, Frame] Set window rotation with mode(%d).", 
+                               SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d, Frame] Set window rotation with mode(%d).", 
                                        pFrame->GetNativeHandle(), bounds.x, bounds.y, bounds.width, bounds.height, __mode);
                                SetRotation(*pFrame, __mode);
 
@@ -426,7 +426,7 @@ _OrientationAgent::UpdateOrientation(void)
                pEcoreEvas->UpdateWindowBounds(*pRootWindow);
                
                Rectangle bounds = pRootWindow->GetBounds();
-               SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x, %d, %d, %d, %d] Update evas objects to %d degree.", 
+               SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d] Update evas objects to %d degree.", 
                        pRootWindow->GetNativeHandle(), bounds.x, bounds.y, bounds.width, bounds.height, rotation);
        }
 }
index 3e0c508..a468ad6 100644 (file)
@@ -277,6 +277,10 @@ _Window::CreateRootVisualElement(void)
        // Attach visual element to root visual element.
        __pRootVisualElement->AttachChild(*GetVisualElement());
 
+#if defined(WINDOW_BASE_ROTATE)
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Create.", GetNativeHandle());
+#endif
+
        return E_SUCCESS;
 }
 
@@ -524,7 +528,7 @@ _Window::OnWindowStateChanged(void)
        int rotation = pEcoreEvas->GetWindowRotation(*this);
 
        Rectangle bounds = GetBounds();
-       SysLog(NID_UI, "[Window-based Rotation][Window : 0x%x, %d, %d, %d, %d] OnWindowStateChanged is called with prev rotation(%d) and cur rotation(%d)", 
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d] OnWindowStateChanged is called with prev rotation(%d) and cur rotation(%d)", 
                GetNativeHandle(), bounds.x, bounds.y, bounds.width, bounds.height, __rotation, rotation);
 
        if (__rotation != rotation)