fixup! Fix Desktop Chrome window not resizing 62/324662/3
authorchiragmaheshwari <c.maheshwari@samsung.com>
Thu, 22 May 2025 11:43:27 +0000 (17:13 +0530)
committerBot Blink <blinkbot@samsung.com>
Tue, 3 Jun 2025 07:07:20 +0000 (07:07 +0000)
Apply chrome window resizing only for desktop profile.

Change-Id: I492b91aef7af9d32744197c49e8eefbe9c8cee59
Signed-off-by: chiragmaheshwari <c.maheshwari@samsung.com>
tizen_src/chromium_impl/ui/ozone/platform/efl/efl_window.cc

index 14bad5e5be9134199a4f70ce3c45673ee31d34b9..87f1c55fa9d72993ad5b3438e0cddcb454d3fc9c 100644 (file)
@@ -132,7 +132,9 @@ EflWindow::~EflWindow() {
     evas_object_del(elm_win_);
   }
   if (ee_) {
+#if !BUILDFLAG(IS_TIZEN)
     EflWindowManager::RemoveWindowFromMap(ee_);
+#endif
     ecore_evas_free(ee_);
   }
 
@@ -403,6 +405,7 @@ uint32_t EflWindow::DispatchEventToDelegate(const PlatformEvent& event) {
   return handled ? POST_DISPATCH_STOP_PROPAGATION : POST_DISPATCH_NONE;
 }
 
+#if !BUILDFLAG(IS_TIZEN)
 void EflWindow::OnEcoreEvasResize(Ecore_Evas* ee) {
   int width, height;
   ecore_evas_geometry_get(ee, NULL, NULL, &width, &height);
@@ -410,6 +413,7 @@ void EflWindow::OnEcoreEvasResize(Ecore_Evas* ee) {
   EflWindow* efl_window = EflWindowManager::GetWindowFromMap(ee);
   efl_window->SetBoundsInPixels(gfx::Rect(width, height));
 }
+#endif
 
 void EflWindow::Initialize(const PlatformWindowInitProperties& properties) {
   bounds_ = properties.bounds;
@@ -450,8 +454,11 @@ void EflWindow::Initialize(const PlatformWindowInitProperties& properties) {
   }
 
   evas_ = ecore_evas_get(ee_);
+
+#if !BUILDFLAG(IS_TIZEN)
   EflWindowManager::AddWindowToMap(ee_, this);
   ecore_evas_callback_resize_set(ee_, &OnEcoreEvasResize);
+#endif
 
   // Evas engine creates it's own egl window and egl surface to render.
   // Eventually additional GEM memory is created for rendering. Enable evas