refactor(new_editor): extract window content boundary

This commit is contained in:
2026-04-22 20:32:56 +08:00
parent 6efbaf450e
commit e251b77d0d
19 changed files with 1223 additions and 234 deletions

View File

@@ -4,6 +4,7 @@
#include "Composition/EditorContext.h"
#include "Platform/Win32/EditorWindowManager.h"
#include "Platform/Win32/EditorWindow.h"
#include "Platform/Win32/EditorWorkspaceWindowContentController.h"
#include "Platform/Win32/Win32SystemInteractionHost.h"
#include "Support/EnvironmentFlags.h"
#include "Support/ExecutablePath.h"
@@ -148,7 +149,8 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
createParams.autoCaptureOnStartup =
App::IsEnvironmentFlagEnabled("XCUI_AUTO_CAPTURE_ON_STARTUP");
if (m_windowManager->CreateEditorWindow(
m_editorContext->BuildWorkspaceController(),
App::CreateEditorWorkspaceWindowContentController(
m_editorContext->BuildWorkspaceController()),
createParams) == nullptr) {
AppendUIEditorRuntimeTrace("app", "primary window creation failed");
return false;