if (operationId == LIVEBOX_TRAY_ON_CREATE)
{
- int x = 0;
- int y = 0;
+ double x = 0;
+ double y = 0;
int width = 0;
int height = 0;
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() );
}
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;
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;