From 7d1508a73449220e80feb70478453d241137c1b5 Mon Sep 17 00:00:00 2001 From: Chandan Padhi Date: Wed, 25 Feb 2015 19:15:38 +0530 Subject: [PATCH] fixup! fixup! fixup! Fix ewk_view_orientation_send API Reviewed by: Piotr Tworek, venu musham Change-Id: I8e80329d12e5b6cae84b549c860b7a0ae8743a52 Signed-off-by: Chandan Padhi --- tizen_src/impl/browser/web_contents/web_contents_view_efl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tizen_src/impl/browser/web_contents/web_contents_view_efl.cc b/tizen_src/impl/browser/web_contents/web_contents_view_efl.cc index d020813..48c6b77 100644 --- a/tizen_src/impl/browser/web_contents/web_contents_view_efl.cc +++ b/tizen_src/impl/browser/web_contents/web_contents_view_efl.cc @@ -250,15 +250,16 @@ void WebContentsViewEfl::SetOrientation(int orientation) { rwh->GetWebScreenInfo(&screen_info); screen_info.orientationAngle = orientation; + WebContentsImpl& contents_impl = static_cast(*web_contents_); + ViewMsg_Resize_Params params; params.screen_info = screen_info; params.new_size = gfx::Size(screen_info.rect.width, screen_info.rect.height); - params.is_fullscreen = GetEWebView()->IsFullscreen(); + params.is_fullscreen = contents_impl.IsFullscreenForCurrentTab(); rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params)); rwhv->UpdateScreenInfo(rwhv->GetNativeView()); - WebContentsImpl& contents_impl = static_cast(*web_contents_); contents_impl.screen_orientation_dispatcher_host()->OnOrientationChange(); } -- 2.7.4