| Index: ui/views/widget/desktop_aura/x11_pointer_grab.h
|
| diff --git a/ui/views/widget/desktop_aura/x11_pointer_grab.h b/ui/views/widget/desktop_aura/x11_pointer_grab.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6c1ac931ed563fdbd415ce80b3d6fa0f7ef47cc8
|
| --- /dev/null
|
| +++ b/ui/views/widget/desktop_aura/x11_pointer_grab.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/gfx/x/x11_types.h"
|
| +
|
| +typedef unsigned long Cursor;
|
| +
|
| +namespace views {
|
| +
|
| +// Grabs the pointer. It is unnecessary to ungrab the pointer prior to grabbing
|
| +// it.
|
| +int GrabPointer(XID window, bool owner_events, ::Cursor cursor);
|
| +
|
| +// Sets the cursor to use for the duration of the active pointer grab.
|
| +void ChangeActivePointerGrabCursor(::Cursor cursor);
|
| +
|
| +// Ungrabs the pointer.
|
| +void UngrabPointer();
|
| +
|
| +} // namespace views
|
|
|