}
result
-_Window::CreateRootVisualElement(void)
+_Window::CreateRootVisualElement(_WindowType windowType)
{
+ __type = windowType;
+
result r = CreateLayer();
SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pRootVisualElement->AttachChild(*GetVisualElement());
#if defined(WINDOW_BASE_ROTATE)
- SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Create.", GetNativeHandle());
+ if (__type == _WINDOW_TYPE_MAIN)
+ {
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, BASIC] Create.", GetNativeHandle());
+ }
+ else
+ {
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, UTILITY] Create.", GetNativeHandle());
+ }
#endif
return E_SUCCESS;
_DisplayManager* pDisplayManager = _DisplayManager::GetInstance();
SysAssert(pDisplayManager);
- __pLayer = _NativeLayer::CreateInstanceN();
+ if (__type == _WINDOW_TYPE_MAIN)
+ {
+ __pLayer = _NativeLayer::CreateInstanceN();
+ }
+ else
+ {
+ __pLayer = _NativeLayer::CreateInstanceN(false);
+ }
+
SysAssert(__pLayer);
__pRootVisualElement = __pLayer->GetRootVisualElement();
}
_Window::_Window()
- : __windowState(WINDOW_STATE_INITIALIZED)
+ : __type(_WINDOW_TYPE_MAIN)
+ , __windowState(WINDOW_STATE_INITIALIZED)
, __pOwner(null)
, __pWindowDelegate(null)
, __activated(false)
namespace Tizen { namespace Ui
{
+enum _WindowType
+{
+ _WINDOW_TYPE_MAIN,
+ _WINDOW_TYPE_SUB,
+};
+
class _IWindowDelegate
{
public:
void Close(void);
_Control* GetOwner(void) const;
void SetOwner(_Control* pOwner);
- result CreateRootVisualElement(void);
+ result CreateRootVisualElement(_WindowType windowType = _WINDOW_TYPE_MAIN);
virtual result CreateLayer(void);
virtual bool IsFocusableDescendant(const _Control* pFocus) const;
virtual bool IsLayoutChangable(void) const;
void Deactivate(void);
private:
+ _WindowType __type;
WindowState __windowState;
_Control* __pOwner;
_IWindowDelegate* __pWindowDelegate;