[MM] Video rotation issue in full screen mode
authorUmesh Kumar Patel <umeshk.patel@samsung.com>
Fri, 22 May 2015 12:53:58 +0000 (18:23 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
On Video rotation on fullscreen mode exiting to normal mode,
because of fullscreen mode information is not passed to
RenderWidgetHost, made changes to pass fullscreen information.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13052
Reviewed by: SeungSeop Park, Siba Samal, Venugopal S M

Change-Id: Id6cdf91d757d6855e3276730d2348cee94113504
Signed-off-by: jitu.patel <jitu.patel@samsung.com>
Signed-off-by: Umesh Kumar Patel <umeshk.patel@samsung.com>
tizen_src/chromium_impl/content/browser/web_contents/web_contents_view_efl.cc

index 338cb26..3227caa 100644 (file)
@@ -274,14 +274,18 @@ void WebContentsViewEfl::SetOrientation(int orientation) {
     blink::WebScreenInfo screen_info;
     rwh->GetWebScreenInfo(&screen_info);
     screen_info.orientationAngle = orientation;
+    WebContentsImpl& contents_impl =
+        static_cast<WebContentsImpl&>(*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 = contents_impl.IsFullscreenForCurrentTab();
 
     rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params));
     rwhv->UpdateScreenInfo(rwhv->GetNativeView());
 
-    WebContentsImpl& contents_impl = static_cast<WebContentsImpl&>(*web_contents_);
     contents_impl.screen_orientation_dispatcher_host()->OnOrientationChange();
   }