change type of x, y position of LiveboxPopup to float
authorjungmin76.park <jungmin76.park@samsung.com>
Wed, 13 Feb 2013 06:29:57 +0000 (15:29 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Wed, 13 Feb 2013 06:29:57 +0000 (15:29 +0900)
Change-Id: Id884326e8cbf4be35b37361549fc4959ead7fa2f
Signed-off-by: jungmin76.park <jungmin76.park@samsung.com>
src/FShell_LiveboxProviderManagerImpl.cpp
src/inc/FShell_LiveboxProviderManagerImpl.h

index 260431f..827e655 100644 (file)
@@ -486,8 +486,8 @@ _LiveboxProviderManagerImpl::HandleLiveboxPopupRequest(const Tizen::Base::String
 
        if (operationId == LIVEBOX_TRAY_ON_CREATE)
        {
-               int x = 0;
-               int y = 0;
+               double x = 0;
+               double y = 0;
                int width = 0;
                int height = 0;
 
@@ -499,11 +499,11 @@ _LiveboxProviderManagerImpl::HandleLiveboxPopupRequest(const Tizen::Base::String
 
                const String* pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_X));
                SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_X.GetPointer() );
-               Integer::Parse(*pValue, x);
+               Double::Parse(*pValue, x);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_Y));;
                SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_Y.GetPointer() );
-               Integer::Parse(*pValue, y);
+               Double::Parse(*pValue, y);
 
                pValue =  dynamic_cast<const String*>(pArgs->GetValue(ARG_KEY_WIDTH));
                SysTryReturnResult(NID_APP, pValue, E_FAILURE, "Failed to GetValue(%ls)", ARG_KEY_WIDTH.GetPointer() );
@@ -635,15 +635,11 @@ _LiveboxProviderManagerImpl::RemoveLivebox(const String& instanceId, bool termin
 }
 
 result
-_LiveboxProviderManagerImpl::CreateLiveboxPopupProvider(const String& instanceId, const String& providerName, const String& userInfo, int x, int y, int width, int height)
+_LiveboxProviderManagerImpl::CreateLiveboxPopupProvider(const String& instanceId, const String& providerName, const String& userInfo, double x, double y, int width, int height)
 {
-       SysLog(NID_APP, "instanceId(%ls), providerName(%ls), userInfo(%ls), rect(%d, %d, %d, %d)", instanceId.GetPointer(), providerName.GetPointer(), userInfo.GetPointer(), x, y, width, height );
+       SysLog(NID_APP, "instanceId(%ls), providerName(%ls), userInfo(%ls), rect(%f, %f, %d, %d)", instanceId.GetPointer(), providerName.GetPointer(), userInfo.GetPointer(), x, y, width, height );
        SysTryReturnResult(NID_APP, __pLiveboxPopupProviderFactory, E_FAILURE, "[E_INVALID_OPERATION] __pLiveboxPopupProviderFactory should not be null");
 
-       LiveboxProvider* pLivebox = null;
-       __liveBoxes.GetValue(instanceId, pLivebox);
-       SysTryReturnResult(NID_APP, pLivebox, E_INVALID_OPERATION, "[E_INVALID_OPERATION]");
-
        LiveboxPopupProvider* pPd = __pLiveboxPopupProviderFactory->CreateInstance(providerName, userInfo);
        __pLiveboxPopupProvider = pPd;
 
index ec664ac..e9e92b2 100644 (file)
@@ -91,7 +91,7 @@ private:
        result UpdateLivebox(const Tizen::Base::String& instanceId, int width, int height, const Tizen::Base::String& argument);
        result ResizeLivebox(const Tizen::Base::String& instanceId, int width, int height);
        result RemoveLivebox(const Tizen::Base::String& instanceId, bool terminateIfFinished);
-       result CreateLiveboxPopupProvider(const Tizen::Base::String& instanceId, const Tizen::Base::String& providerName,  const Tizen::Base::String& userInfo, int x, int y, int width, int height);
+       result CreateLiveboxPopupProvider(const Tizen::Base::String& instanceId, const Tizen::Base::String& providerName,  const Tizen::Base::String& userInfo, double x, double y, int width, int height);
        result DestroyLiveboxPopupProvider(const Tizen::Base::String& instanceId);
 
        bool  ContainsLivebox(const Tizen::Base::String& instanceId) const;