#include "ui/ozone/platform/x11/x11_window.h"
#include "base/memory/raw_ptr.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/x/test/x11_property_change_waiter.h"
#include "ui/base/x/x11_util.h"
#include "ui/display/display_switches.h"
#include "ui/display/screen_base.h"
#include "ui/display/test/test_screen.h"
#include "ui/events/devices/x11/touch_factory_x11.h"
#include "ui/events/event.h"
#include "ui/events/platform/x11/x11_event_source.h"
#include "ui/events/test/events_test_utils_x11.h"
#include "ui/gfx/geometry/transform.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/x/atom_cache.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto.h"
#include "ui/ozone/test/mock_platform_window_delegate.h"
#include "ui/platform_window/extensions/x11_extension_delegate.h"
namespace ui {
namespace {
constexpr int kPointerDeviceId = …;
BoundsChange;
class TestPlatformWindowDelegate : public PlatformWindowDelegate { … };
class ShapedX11ExtensionDelegate : public X11ExtensionDelegate { … };
class WMStateWaiter : public X11PropertyChangeWaiter { … };
class TestScreen : public display::ScreenBase { … };
std::vector<gfx::Rect> GetShapeRects(x11::Window window) { … }
bool ShapeRectContainsPoint(const std::vector<gfx::Rect>& shape_rects,
int x,
int y) { … }
}
class X11WindowTest : public testing::Test { … };
TEST_F(X11WindowTest, DISABLED_Shape) { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_WindowManagerTogglesFullscreen …
#else
#define MAYBE_WindowManagerTogglesFullscreen …
#endif
TEST_F(X11WindowTest, MAYBE_WindowManagerTogglesFullscreen) { … }
TEST_F(X11WindowTest,
DISABLED_ToggleMinimizePropogateToPlatformWindowDelegate) { … }
}