mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-30 02:09:10 +03:00
699587eaac
* refactor: select_window_from_point is now on WorkspaceContent * refactor: moving more bits to WorkspaceContent, including advise_new_window * refactor: various reworks, including toggle_floating * refactor: renaming OutputContent to Output, WorkspaceContent to Workspace, + other refactors * refactor: remove Workspace::get_tree and even fix a bug! * backout: renderer.cpp changes
120 lines
3.0 KiB
C++
120 lines
3.0 KiB
C++
/*
|
|
* Copyright © Canonical Ltd.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 or 3 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef MIRACLE_WM_STUB_SESSION_H
|
|
#define MIRACLE_WM_STUB_SESSION_H
|
|
|
|
#include <mir/scene/session.h>
|
|
|
|
namespace miracle::test
|
|
{
|
|
class StubSession : public mir::scene::Session
|
|
{
|
|
public:
|
|
[[nodiscard]] auto process_id() const -> pid_t override
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
[[nodiscard]] auto socket_fd() const -> mir::Fd override
|
|
{
|
|
return mir::Fd();
|
|
}
|
|
|
|
[[nodiscard]] auto name() const -> std::string override
|
|
{
|
|
return std::string();
|
|
}
|
|
|
|
void send_error(mir::ClientVisibleError const& error) override
|
|
{
|
|
}
|
|
|
|
void send_input_config(MirInputConfig const& config) override
|
|
{
|
|
}
|
|
|
|
[[nodiscard]] auto default_surface() const -> std::shared_ptr<mir::scene::Surface> override
|
|
{
|
|
return std::shared_ptr<mir::scene::Surface>();
|
|
}
|
|
|
|
void set_lifecycle_state(MirLifecycleState state) override
|
|
{
|
|
}
|
|
|
|
void hide() override
|
|
{
|
|
}
|
|
|
|
void show() override
|
|
{
|
|
}
|
|
|
|
void start_prompt_session() override
|
|
{
|
|
}
|
|
|
|
void stop_prompt_session() override
|
|
{
|
|
}
|
|
|
|
void suspend_prompt_session() override
|
|
{
|
|
}
|
|
|
|
void resume_prompt_session() override
|
|
{
|
|
}
|
|
|
|
auto create_surface(std::shared_ptr<Session> const& session,
|
|
mir::wayland::Weak<mir::frontend::WlSurface> const& wayland_surface,
|
|
mir::shell::SurfaceSpecification const& params,
|
|
std::shared_ptr<mir::scene::SurfaceObserver> const& observer,
|
|
mir::Executor* observer_executor) -> std::shared_ptr<mir::scene::Surface> override
|
|
{
|
|
return std::shared_ptr<mir::scene::Surface>();
|
|
}
|
|
|
|
void destroy_surface(std::shared_ptr<mir::scene::Surface> const& surface) override
|
|
{
|
|
}
|
|
|
|
[[nodiscard]] auto surface_after(std::shared_ptr<mir::scene::Surface> const& surface) const -> std::shared_ptr<mir::scene::Surface> override
|
|
{
|
|
return std::shared_ptr<mir::scene::Surface>();
|
|
}
|
|
|
|
auto create_buffer_stream(
|
|
mir::graphics::BufferProperties const& props) -> std::shared_ptr<mir::compositor::BufferStream> override
|
|
{
|
|
return std::shared_ptr<mir::compositor::BufferStream>();
|
|
}
|
|
|
|
void destroy_buffer_stream(std::shared_ptr<mir::frontend::BufferStream> const& stream) override
|
|
{
|
|
}
|
|
|
|
void configure_streams(mir::scene::Surface& surface, std::vector<mir::shell::StreamSpecification> const& config) override
|
|
{
|
|
}
|
|
|
|
public:
|
|
};
|
|
}
|
|
|
|
#endif // MIRACLE_WM_STUB_SESSION_H
|