// Rotate screen
// Set preffered rotation
+ _Window* pWindow = pImpl->GetCore().GetRootWindow();
+ NativeWindowHandle handle = 0;
+ if (pWindow)
+ {
+ handle = pWindow->GetNativeHandle();
+ }
+
OrientationStatus status = pImplManager->GetOrientationStatus(__mode);
- SysLog(NID_UI, "[Window Manager Rotation] Update : __mode(%d) -> status(%d)", __mode, status);
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Update : __mode(%d) -> status(%d)", handle, __mode, status);
if (__updateStatus == true)
{
, __minimized(false)
, __activated(false)
, __constructed(false)
+ , __rotation(false)
, __pFormActivationChangeEventListener(null)
{
_FramePresenter* pPresenter = new (std::nothrow) _FramePresenter(*this);
}
void
+_Frame::SetRotation(bool rotation)
+{
+ __rotation = rotation;
+}
+
+void
_Frame::AddFrameEventListener(const _IFrameEventListener& listener)
{
__constructed = true;
}
else
{
- return E_UNSUPPORTED_OPERATION;
+ if (__rotation == true)
+ {
+ return E_SUCCESS;
+ }
+ else
+ {
+ return E_UNSUPPORTED_OPERATION;
+ }
}
}
if (frameShowMode == FRAME_SHOW_MODE_FULL_SCREEN)
{
+ GetCore().SetRotation(true);
+
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
SetSize(screenSize);
{
SetSize(FloatDimension(screenSize.height, screenSize.width));
}
+
+ GetCore().SetRotation(false);
}
else if ((frameShowMode == FRAME_SHOW_MODE_PARTIAL_SCREEN) || (frameShowMode == FRAME_SHOW_MODE_PARTIAL_SCREEN_FLOATING))
{
// Orientation
virtual bool IsOrientationRoot(void) const;
+ void SetRotation(bool rotation);
// Event listeners
void AddFrameEventListener(const Tizen::Ui::Controls::_IFrameEventListener& listener);
bool __minimized;
bool __activated;
bool __constructed;
+ bool __rotation;
_IFormActivationChangeEventListener* __pFormActivationChangeEventListener;
}; // _Frame