Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show All 39 Lines | |||||
40 | class PlasmaWindowManagement; | 40 | class PlasmaWindowManagement; | ||
41 | class PointerConstraints; | 41 | class PointerConstraints; | ||
42 | class Seat; | 42 | class Seat; | ||
43 | class ServerSideDecorationManager; | 43 | class ServerSideDecorationManager; | ||
44 | class ShadowManager; | 44 | class ShadowManager; | ||
45 | class Shell; | 45 | class Shell; | ||
46 | class ShellSurface; | 46 | class ShellSurface; | ||
47 | class ShmPool; | 47 | class ShmPool; | ||
48 | class SubCompositor; | ||||
49 | class SubSurface; | ||||
48 | class Surface; | 50 | class Surface; | ||
49 | class XdgDecorationManager; | 51 | class XdgDecorationManager; | ||
50 | } | 52 | } | ||
51 | } | 53 | } | ||
52 | 54 | | |||
53 | namespace KWin | 55 | namespace KWin | ||
54 | { | 56 | { | ||
55 | namespace Xwl | 57 | namespace Xwl | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
107 | * This can be called from cleanup in order to ensure that no Wayland Connection | 109 | * This can be called from cleanup in order to ensure that no Wayland Connection | ||
108 | * leaks into the next test method. | 110 | * leaks into the next test method. | ||
109 | * @see setupWaylandConnection | 111 | * @see setupWaylandConnection | ||
110 | */ | 112 | */ | ||
111 | void destroyWaylandConnection(); | 113 | void destroyWaylandConnection(); | ||
112 | 114 | | |||
113 | KWayland::Client::ConnectionThread *waylandConnection(); | 115 | KWayland::Client::ConnectionThread *waylandConnection(); | ||
114 | KWayland::Client::Compositor *waylandCompositor(); | 116 | KWayland::Client::Compositor *waylandCompositor(); | ||
117 | KWayland::Client::SubCompositor *waylandSubCompositor(); | ||||
115 | KWayland::Client::ShadowManager *waylandShadowManager(); | 118 | KWayland::Client::ShadowManager *waylandShadowManager(); | ||
116 | KWayland::Client::Shell *waylandShell(); | 119 | KWayland::Client::Shell *waylandShell(); | ||
117 | KWayland::Client::ShmPool *waylandShmPool(); | 120 | KWayland::Client::ShmPool *waylandShmPool(); | ||
118 | KWayland::Client::Seat *waylandSeat(); | 121 | KWayland::Client::Seat *waylandSeat(); | ||
119 | KWayland::Client::ServerSideDecorationManager *waylandServerSideDecoration(); | 122 | KWayland::Client::ServerSideDecorationManager *waylandServerSideDecoration(); | ||
120 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | 123 | KWayland::Client::PlasmaShell *waylandPlasmaShell(); | ||
121 | KWayland::Client::PlasmaWindowManagement *waylandWindowManagement(); | 124 | KWayland::Client::PlasmaWindowManagement *waylandWindowManagement(); | ||
122 | KWayland::Client::PointerConstraints *waylandPointerConstraints(); | 125 | KWayland::Client::PointerConstraints *waylandPointerConstraints(); | ||
123 | KWayland::Client::IdleInhibitManager *waylandIdleInhibitManager(); | 126 | KWayland::Client::IdleInhibitManager *waylandIdleInhibitManager(); | ||
124 | KWayland::Client::AppMenuManager *waylandAppMenuManager(); | 127 | KWayland::Client::AppMenuManager *waylandAppMenuManager(); | ||
125 | KWayland::Client::XdgDecorationManager *xdgDecorationManager(); | 128 | KWayland::Client::XdgDecorationManager *xdgDecorationManager(); | ||
126 | 129 | | |||
127 | bool waitForWaylandPointer(); | 130 | bool waitForWaylandPointer(); | ||
128 | bool waitForWaylandTouch(); | 131 | bool waitForWaylandTouch(); | ||
129 | bool waitForWaylandKeyboard(); | 132 | bool waitForWaylandKeyboard(); | ||
130 | 133 | | |||
131 | void flushWaylandConnection(); | 134 | void flushWaylandConnection(); | ||
132 | 135 | | |||
133 | KWayland::Client::Surface *createSurface(QObject *parent = nullptr); | 136 | KWayland::Client::Surface *createSurface(QObject *parent = nullptr); | ||
137 | KWayland::Client::SubSurface *createSubSurface(KWayland::Client::Surface *surface, | ||||
138 | KWayland::Client::Surface *parentSurface, QObject *parent = nullptr); | ||||
134 | enum class ShellSurfaceType { | 139 | enum class ShellSurfaceType { | ||
135 | WlShell, | 140 | WlShell, | ||
136 | XdgShellV5, | 141 | XdgShellV5, | ||
137 | XdgShellV6, | 142 | XdgShellV6, | ||
138 | XdgShellStable | 143 | XdgShellStable | ||
139 | }; | 144 | }; | ||
140 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | 145 | QObject *createShellSurface(ShellSurfaceType type, KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
141 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | 146 | KWayland::Client::ShellSurface *createShellSurface(KWayland::Client::Surface *surface, QObject *parent = nullptr); | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |