summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/window_controller.h
blob: a28219abed7fdca1475c4f4b174e944f5bcc790e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/hle/service/service.h"

namespace Service::AM {

struct Applet;

class IWindowController final : public ServiceFramework<IWindowController> {
public:
    explicit IWindowController(Core::System& system_, std::shared_ptr<Applet> applet_);
    ~IWindowController() override;

private:
    void GetAppletResourceUserId(HLERequestContext& ctx);
    void GetAppletResourceUserIdOfCallerApplet(HLERequestContext& ctx);
    void AcquireForegroundRights(HLERequestContext& ctx);
    void SetAppletWindowVisibility(HLERequestContext& ctx);
    void SetAppletGpuTimeSlice(HLERequestContext& ctx);

    const std::shared_ptr<Applet> applet;
};

} // namespace Service::AM