SetSystemWindow(true);
+#if defined(MULTI_WINDOW)
r = CreateRootVisualElement();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+#else // MULTI_WINDOW
+ unique_ptr<_LiveboxLayer> pLayer(new (std::nothrow) _LiveboxLayer(*this));\r
+ SysTryReturn(NID_UI_CTRL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");\r
+\r
+ pLayer->Construct();\r
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));\r
+\r
+ __pLiveboxLayer = move(pLayer);\r
+ __pLiveboxFrameRootVisualElement = __pLiveboxLayer->GetRootVisualElement();
+#endif // MULTI_WINDOW
Rectangle bounds(0, 0, liveboxSize.width, liveboxSize.height);
r = SetBounds(bounds);
return r;
}
+#if defined(MULTI_WINDOW)
result
_LiveboxFrame::CreateLayer(void)
{
return r;
}
+#endif // MULTI_WINDOW
void
_LiveboxFrame::OnActivated(void)
result SetLayerShowState(bool showState);
result SetLayerBounds(const Tizen::Graphics::Rectangle& bounds);
+#if defined(MULTI_WINDOW)
virtual result CreateLayer(void);
+#endif // MULTI_WINDOW
virtual void OnActivated(void);
virtual void OnDeactivated(void);
virtual void OnBoundsChanged(void);
SysLog(NID_UI_CTRL, "(%d %d) %lld", size.width, size.height, ticks);
result r = E_SUCCESS;
- _VisualElement* pVisualElement = null;
SetSystemWindow(true);
+#if defined(MULTI_WINDOW)
r = CreateRootVisualElement();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+#else // MULTI_WINDOW
+ unique_ptr<_LiveboxPopupLayer> pLayer(new (std::nothrow) _LiveboxPopupLayer(*this));\r
+ SysTryReturn(NID_UI_CTRL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");\r
+\r
+ r = pLayer->Construct();\r
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));\r
+\r
+ __pLiveboxPopupLayer = move(pLayer);\r
+ __pLiveboxPopupRootVisualElement = __pLiveboxPopupLayer->GetRootVisualElement();
+#endif // MULTI_WINDOW
Rectangle bounds(0, 0, size.width, size.height);
r = SetBounds(bounds);
__pLiveboxPopupRootVisualElement->SetBounds(fBounds);
__pLiveboxPopupRootVisualElement->SetShowState(false);
- pVisualElement = GetVisualElement();
+ _VisualElement* pVisualElement = GetVisualElement();
r = GetLastResult();
SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
+#if defined(MULTI_WINDOW)
result
_LiveboxPopup::CreateLayer(void)
{
return r;
}
+#endif // MULTI_WINDOW
void
_LiveboxPopup::OnActivated(void)
result SetLayerShowState(bool showState);
result SetLayerBounds(const Tizen::Graphics::Rectangle& bounds);
+#if defined(MULTI_WINDOW)
virtual result CreateLayer(void);
+#endif // MULTI_WINDOW
virtual void OnActivated(void);
virtual void OnDeactivated(void);
virtual void OnBoundsChanged(void);