From: Seongjun Yim Date: Tue, 14 May 2013 09:20:07 +0000 (+0900) Subject: implement html5 onorientationchanged API X-Git-Tag: submit/tizen_2.1/20130515.031828^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=343ab64f2d2a2738633be0ad09c5ecb019ebcd6a;p=framework%2Fosp%2Fweb.git implement html5 onorientationchanged API Change-Id: I9039c903c3b069942e6ef6fbaa8abb7764e24643 Signed-off-by: Seongjun Yim --- 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); }