#include "ui/base/x/x11_pointer_grab.h"
#include "base/cancelable_callback.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "ui/base/x/x11_util.h"
#include "ui/events/devices/x11/device_data_manager_x11.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xinput.h"
#include "ui/gfx/x/xproto.h"
namespace ui {
namespace {
x11::Window g_grab_window = …;
bool g_owner_events = …;
base::CancelableOnceCallback<void(x11::Cursor)>& GetGrabCallback() { … }
x11::GrabStatus GrabPointerImpl(x11::Window window,
bool owner_events,
x11::Cursor cursor) { … }
}
x11::GrabStatus GrabPointer(x11::Window window,
bool owner_events,
scoped_refptr<ui::X11Cursor> cursor) { … }
void ChangeActivePointerGrabCursor(scoped_refptr<ui::X11Cursor> cursor) { … }
void UngrabPointer() { … }
}