Implemented some IFrameworkView stuff.

This commit is contained in:
Rodrigo Todescatto 2024-10-14 16:30:41 -03:00 committed by GitHub
parent 23c19fe517
commit 462bf31076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 46 additions and 0 deletions

View File

@ -118,6 +118,36 @@ INT32 CoreApplicationX::_abi_get_Properties(ABI::Windows::Foundation::Collection
return m_IapplicationCore->get_Properties(value);
}
INT32 CoreApplicationX::_abi_Initialize(ABI::Windows::ApplicationModel::Core::ICoreApplicationView* application)
{
return m_IFrameworkView->Initialize(application);
}
INT32 CoreApplicationX::_abi_SetWindow(ICoreWindow* window)
{
return m_IFrameworkView->SetWindow(window);
}
INT32 CoreApplicationX::_abi_Load(HSTRING string)
{
return m_IFrameworkView->Load(string);
}
INT32 CoreApplicationX::__abi_Run()
{
return m_IFrameworkView->Run();
}
INT32 CoreApplicationX::_abi_Uninitialize()
{
return m_IFrameworkView->Uninitialize();
}
INT32 CoreApplicationX::_abi_CreateView(ABI::Windows::ApplicationModel::Core::IFrameworkView** view)
{
return m_IFrameworkViewSource->CreateView(view);
}
HRESULT CoreApplicationX::QueryInterface(const IID& riid, void** ppvObject)
{
return m_coreWindow->QueryInterface(riid, ppvObject);

View File

@ -17,6 +17,8 @@ public:
m_applicationCoreView = reinterpret_cast<ABI::Windows::ApplicationModel::Core::CoreApplicationView*>(application);
m_applicationCoreExit = reinterpret_cast<ABI::Windows::ApplicationModel::Core::ICoreApplicationExit*>(application);
m_coreWindow = reinterpret_cast<ABI::Windows::UI::Core::ICoreWindow*>(application);
m_IFrameworkView = reinterpret_cast<ABI::Windows::ApplicationModel::Core::IFrameworkView*>(application);
m_IFrameworkViewSource = reinterpret_cast<ABI::Windows::ApplicationModel::Core::IFrameworkViewSource*>(application);
}
public:
@ -42,6 +44,12 @@ public:
INT32 Run(ABI::Windows::ApplicationModel::Core::IFrameworkViewSource* viewSource) override;
INT32 _abi_get_Id(HSTRING* value) override;
INT32 _abi_get_Properties(ABI::Windows::Foundation::Collections::IPropertySet** value) override;
INT32 _abi_Initialize(ABI::Windows::ApplicationModel::Core::ICoreApplicationView* application) override;
INT32 _abi_SetWindow(ICoreWindow* window) override;
INT32 _abi_Load(HSTRING string) override;
INT32 __abi_Run() override;
INT32 _abi_Uninitialize() override;
INT32 _abi_CreateView(ABI::Windows::ApplicationModel::Core::IFrameworkView** view) override;
HRESULT QueryInterface(const IID& riid, void** ppvObject) override;
ULONG AddRef() override;
@ -54,5 +62,7 @@ private:
ABI::Windows::ApplicationModel::Core::CoreApplicationView* m_applicationCoreView;
ABI::Windows::ApplicationModel::Core::ICoreApplicationExit* m_applicationCoreExit;
ABI::Windows::UI::Core::ICoreWindow* m_coreWindow;
ABI::Windows::ApplicationModel::Core::IFrameworkView* m_IFrameworkView;
ABI::Windows::ApplicationModel::Core::IFrameworkViewSource* m_IFrameworkViewSource;
};

View File

@ -37,6 +37,12 @@ public:
virtual INT32 Run(ABI::Windows::ApplicationModel::Core::IFrameworkViewSource* viewSource) = 0;
virtual INT32 _abi_get_Id(HSTRING* value) = 0;
virtual INT32 _abi_get_Properties(ABI::Windows::Foundation::Collections::IPropertySet** value) = 0;
virtual INT32 _abi_Initialize(ABI::Windows::ApplicationModel::Core::ICoreApplicationView* application) = 0;
virtual INT32 _abi_SetWindow(ICoreWindow* window) = 0;
virtual INT32 _abi_Load(HSTRING string) = 0;
virtual INT32 __abi_Run() = 0;
virtual INT32 _abi_Uninitialize() = 0;
virtual INT32 _abi_CreateView(ABI::Windows::ApplicationModel::Core::IFrameworkView** view) = 0;
virtual HRESULT QueryInterface(const IID& riid, void** ppvObject) override = 0;
virtual ULONG AddRef() override = 0;