feat: support dip <-> screen conversion on Linux (#47125)

* feat: support dip <-> screen conversion on Linux

* chore: fix build
This commit is contained in:
Robo 2025-05-22 01:57:32 +09:00 committed by GitHub
commit a4dfd9b6f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 107 additions and 24 deletions

View file

@ -0,0 +1,17 @@
// Copyright (c) 2025 Microsoft GmbH.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/linux/x11_util.h"
#include "ui/ozone/public/ozone_platform.h"
namespace x11_util {
bool IsX11() {
return ui::OzonePlatform::GetInstance()
->GetPlatformProperties()
.electron_can_call_x11;
}
} // namespace x11_util