[M108 Migration][WRTjs][VD] changing conformant style specifications 96/289996/2
authorzhaosy <shiyusy.zhao@samsung.com>
Fri, 17 Mar 2023 01:57:38 +0000 (09:57 +0800)
committerzhao shiyu <shiyusy.zhao@samsung.com>
Fri, 17 Mar 2023 03:10:50 +0000 (03:10 +0000)
if support visual_controller, no_resize conformant style is not needed.

Landscape mode : conformant always needed.
Portrait mode : support visual_controller -> conformant needed.
                not support visual_controller -> no_resize conformant needed.

Reference:
https://review.tizen.org/gerrit/287785/

Change-Id: Ia7af940503853ebadb8ab8b55b1ebb6af100d57b
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
wrt/src/browser/tv/wrt_native_window_tv.cc

index 049173b..9c5b94a 100644 (file)
@@ -363,7 +363,8 @@ void WRTNativeWindowTV::SetWebContents(content::WebContents* web_contents) {
   if (GetProductType() == "IWB")
     DecoratorWindow::GetInstance()->SetDecoratorWindow(top_window_);
   TvWindowManager::GetInstance()->Initialize(top_window_);
-  SetDisplayRotatorCallback();
+  if (!IsVisualControllerSupported())
+    SetDisplayRotatorCallback();
   SetAppMetaDataInfo();
   SetRuntimeVariables();
   SetProxyInfo();