add x, y member for LiveboxPopupProvider
authorjungmin76.park <jungmin76.park@samsung.com>
Wed, 13 Feb 2013 09:28:47 +0000 (18:28 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Wed, 13 Feb 2013 09:28:47 +0000 (18:28 +0900)
Change-Id: I954709c4ac418d9314c1090b67f782d507d0aaca
Signed-off-by: jungmin76.park <jungmin76.park@samsung.com>
inc/FShellLiveboxPopupProvider.h
src/FShellLiveboxPopupProvider.cpp
src/FShell_LiveboxPopupProviderImpl.cpp
src/FShell_LiveboxProviderManagerImpl.cpp
src/inc/FShell_LiveboxPopupProviderImpl.h

index 636640c..0883689 100644 (file)
@@ -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.
index 2b33c5c..935891f 100644 (file)
@@ -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.");
index 4afa6f3..b58419a 100644 (file)
@@ -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)
 {
index 827e655..74b139b 100644 (file)
@@ -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();
index 628336d..baeefbe 100644 (file)
@@ -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;
 };