Split utility window contracts from feature factories

This commit is contained in:
2026-04-27 15:37:39 +08:00
parent 66d968c3ce
commit 2e6643b4d1
26 changed files with 294 additions and 208 deletions

View File

@@ -1,7 +1,6 @@
#include "Windowing/Content/EditorUtilityWindowContentController.h"
#include "UtilityWindows/EditorUtilityWindowPanel.h"
#include "UtilityWindows/EditorUtilityWindowRegistry.h"
#include "Core/UtilityWindows/EditorUtilityWindowRuntime.h"
#include <XCEngine/UI/DrawData.h>
@@ -100,9 +99,8 @@ EditorUtilityWindowContentController::GetShellInteractionState() const {
}
std::unique_ptr<EditorWindowContentController> CreateEditorUtilityWindowContentController(
const EditorUtilityWindowDescriptor& descriptor) {
std::unique_ptr<EditorUtilityWindowPanel> panel =
CreateEditorUtilityWindowPanel(descriptor.kind);
const EditorUtilityWindowDescriptor& descriptor,
std::unique_ptr<EditorUtilityWindowPanel> panel) {
if (panel == nullptr) {
return nullptr;
}