Changeset View
Changeset View
Standalone View
Standalone View
autotests/mock_effectshandler.h
Show All 23 Lines | |||||
24 | #include <QX11Info> | 24 | #include <QX11Info> | ||
25 | 25 | | |||
26 | class MockEffectsHandler : public KWin::EffectsHandler | 26 | class MockEffectsHandler : public KWin::EffectsHandler | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | public: | 29 | public: | ||
30 | explicit MockEffectsHandler(KWin::CompositingType type); | 30 | explicit MockEffectsHandler(KWin::CompositingType type); | ||
31 | void activateWindow(KWin::EffectWindow *) override {} | 31 | void activateWindow(KWin::EffectWindow *) override {} | ||
32 | KWin::Effect *activeFullScreenEffect() const { | 32 | KWin::Effect *activeFullScreenEffect() const override { | ||
33 | return nullptr; | 33 | return nullptr; | ||
34 | } | 34 | } | ||
35 | bool hasActiveFullScreenEffect() const override { | 35 | bool hasActiveFullScreenEffect() const override { | ||
36 | return false; | 36 | return false; | ||
37 | } | 37 | } | ||
38 | int activeScreen() const override { | 38 | int activeScreen() const override { | ||
39 | return 0; | 39 | return 0; | ||
40 | } | 40 | } | ||
▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Line(s) | 265 | void startInteractivePositionSelection(std::function<void (const QPoint &)> callback) override { | |||
266 | callback(QPoint(-1, -1)); | 266 | callback(QPoint(-1, -1)); | ||
267 | } | 267 | } | ||
268 | void showOnScreenMessage(const QString &message, const QString &iconName = QString()) override { | 268 | void showOnScreenMessage(const QString &message, const QString &iconName = QString()) override { | ||
269 | Q_UNUSED(message) | 269 | Q_UNUSED(message) | ||
270 | Q_UNUSED(iconName) | 270 | Q_UNUSED(iconName) | ||
271 | } | 271 | } | ||
272 | void hideOnScreenMessage(OnScreenMessageHideFlags flags = OnScreenMessageHideFlags()) override { Q_UNUSED(flags)} | 272 | void hideOnScreenMessage(OnScreenMessageHideFlags flags = OnScreenMessageHideFlags()) override { Q_UNUSED(flags)} | ||
273 | 273 | | |||
274 | void windowToDesktops(KWin::EffectWindow *w, const QVector<uint> &desktops) { | 274 | void windowToDesktops(KWin::EffectWindow *w, const QVector<uint> &desktops) override { | ||
275 | Q_UNUSED(w) | 275 | Q_UNUSED(w) | ||
276 | Q_UNUSED(desktops) | 276 | Q_UNUSED(desktops) | ||
277 | } | 277 | } | ||
278 | 278 | | |||
279 | KSharedConfigPtr config() const override; | 279 | KSharedConfigPtr config() const override; | ||
280 | KSharedConfigPtr inputConfig() const override; | 280 | KSharedConfigPtr inputConfig() const override; | ||
281 | 281 | | |||
282 | private: | 282 | private: | ||
283 | bool m_animationsSuported = true; | 283 | bool m_animationsSuported = true; | ||
284 | }; | 284 | }; | ||
285 | #endif | 285 | #endif |