From: jungmin76.park Date: Wed, 13 Feb 2013 09:28:47 +0000 (+0900) Subject: add x, y member for LiveboxPopupProvider X-Git-Tag: accepted/tizen_2.1/20130425.034720~82^2~51^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6dcca065746f75ce717707a628a73c1d0ef0a10;p=platform%2Fframework%2Fnative%2Fshell.git add x, y member for LiveboxPopupProvider Change-Id: I954709c4ac418d9314c1090b67f782d507d0aaca Signed-off-by: jungmin76.park --- diff --git a/inc/FShellLiveboxPopupProvider.h b/inc/FShellLiveboxPopupProvider.h index 636640c..0883689 100644 --- a/inc/FShellLiveboxPopupProvider.h +++ b/inc/FShellLiveboxPopupProvider.h @@ -152,7 +152,7 @@ private: // // @since 2.1 // - result Construct(const Tizen::Base::String& instanceId); + result Construct(const Tizen::Base::String& instanceId, double x, double y); // // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects. diff --git a/src/FShellLiveboxPopupProvider.cpp b/src/FShellLiveboxPopupProvider.cpp index 2b33c5c..935891f 100644 --- a/src/FShellLiveboxPopupProvider.cpp +++ b/src/FShellLiveboxPopupProvider.cpp @@ -46,9 +46,9 @@ LiveboxPopupProvider::~LiveboxPopupProvider() } result -LiveboxPopupProvider::Construct(const String& instanceId) +LiveboxPopupProvider::Construct(const String& instanceId, double x, double y) { - __pLiveboxPopupProviderImpl = new (std::nothrow) _LiveboxPopupProviderImpl(instanceId); + __pLiveboxPopupProviderImpl = new (std::nothrow) _LiveboxPopupProviderImpl(instanceId, x, y); SysTryReturnResult(NID_APP, __pLiveboxPopupProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]"); SysLog(NID_APP, "LiveboxPopupProvider is constructed."); diff --git a/src/FShell_LiveboxPopupProviderImpl.cpp b/src/FShell_LiveboxPopupProviderImpl.cpp index 4afa6f3..b58419a 100644 --- a/src/FShell_LiveboxPopupProviderImpl.cpp +++ b/src/FShell_LiveboxPopupProviderImpl.cpp @@ -32,11 +32,11 @@ namespace Tizen { namespace Shell using namespace Tizen::Base; -_LiveboxPopupProviderImpl::_LiveboxPopupProviderImpl(const String& instanceId) +_LiveboxPopupProviderImpl::_LiveboxPopupProviderImpl(const String& instanceId, double x, double y) :__instanceId(instanceId) ,__pLiveboxPopup(null) - ,__x(0) - ,__y(0) + ,__x(x) + ,__y(y) ,__width(0) ,__height(0) { diff --git a/src/FShell_LiveboxProviderManagerImpl.cpp b/src/FShell_LiveboxProviderManagerImpl.cpp index 827e655..74b139b 100644 --- a/src/FShell_LiveboxProviderManagerImpl.cpp +++ b/src/FShell_LiveboxProviderManagerImpl.cpp @@ -643,7 +643,7 @@ _LiveboxProviderManagerImpl::CreateLiveboxPopupProvider(const String& instanceId LiveboxPopupProvider* pPd = __pLiveboxPopupProviderFactory->CreateInstance(providerName, userInfo); __pLiveboxPopupProvider = pPd; - __pLiveboxPopupProvider->Construct(instanceId); + __pLiveboxPopupProvider->Construct(instanceId, x, y); __pLiveboxPopupProvider->OnLiveboxPopupProviderInitializing(userInfo); LiveboxPopup* pLiveBoxFrame = pPd->GetLiveboxPopup(); diff --git a/src/inc/FShell_LiveboxPopupProviderImpl.h b/src/inc/FShell_LiveboxPopupProviderImpl.h index 628336d..baeefbe 100644 --- a/src/inc/FShell_LiveboxPopupProviderImpl.h +++ b/src/inc/FShell_LiveboxPopupProviderImpl.h @@ -37,7 +37,7 @@ class _OSP_EXPORT_ _LiveboxPopupProviderImpl : public Tizen::Base::Object { public: - _LiveboxPopupProviderImpl(const Tizen::Base::String& instanceId); + _LiveboxPopupProviderImpl(const Tizen::Base::String& instanceId, double x, double y); virtual ~_LiveboxPopupProviderImpl(); const Tizen::Base::String& GetInstanceId() const; @@ -53,8 +53,8 @@ private: private: Tizen::Base::String __instanceId; LiveboxPopup* __pLiveboxPopup; - int __x; - int __y; + double __x; + double __y; int __width; int __height; };