From 343ab64f2d2a2738633be0ad09c5ecb019ebcd6a Mon Sep 17 00:00:00 2001 From: Seongjun Yim Date: Tue, 14 May 2013 18:20:07 +0900 Subject: [PATCH] implement html5 onorientationchanged API Change-Id: I9039c903c3b069942e6ef6fbaa8abb7764e24643 Signed-off-by: Seongjun Yim --- src/controls/FWebCtrl_WebImpl.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index f1d1ac0..000dcdd 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -1533,6 +1533,26 @@ OnWebPageBlockSelectedByOrientation(void* pUserData, Evas_Object* pView, void* p } pImpl->SetOrientationChanged(false); + + int orientation = 0; + _ControlRotation rotation = _ControlManager::GetInstance()->GetOrientationStatus(); + switch (rotation) + { + case _CONTROL_ROTATION_0: + orientation = 0; + break; + case _CONTROL_ROTATION_90: + orientation = 90; + break; + case _CONTROL_ROTATION_180: + orientation = 180; + break; + case _CONTROL_ROTATION_270: + orientation = -90; + break; + } + ewk_view_orientation_send(pView, orientation); + OnWebPageBlockSelected(pUserData, pView, pEventInfo); } -- 2.7.4