summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/window_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/window_controller.h')
-rw-r--r--src/core/hle/service/am/window_controller.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/hle/service/am/window_controller.h b/src/core/hle/service/am/window_controller.h
new file mode 100644
index 000000000..a28219abe
--- /dev/null
+++ b/src/core/hle/service/am/window_controller.h
@@ -0,0 +1,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