Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add image response APIs to win32 exports",
"packageName": "react-native-windows",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
21 changes: 21 additions & 0 deletions vnext/Desktop/module.g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
void* winrt_make_Microsoft_Internal_TestController();
void* winrt_make_Microsoft_ReactNative_ReactNativeIsland();
#ifdef USE_WINUI3
void *winrt_make_Microsoft_ReactNative_Composition_ImageFailedResponse();
void *winrt_make_Microsoft_ReactNative_Composition_StreamImageResponse();
void *winrt_make_Microsoft_ReactNative_Composition_Experimental_UriBrushFactoryImageResponse();
void *winrt_make_Microsoft_ReactNative_Composition_Experimental_MicrosoftCompositionContextHelper();
#endif
void *winrt_make_Microsoft_ReactNative_Composition_Experimental_SystemCompositionContextHelper();
Expand All @@ -28,6 +31,15 @@ void* winrt_make_facebook_react_NativeLogEventSource();
void* winrt_make_facebook_react_NativeTraceEventSource();

#ifndef USE_FABRIC
void *winrt_make_Microsoft_ReactNative_Composition_ImageFailedResponse() {
winrt::throw_hresult(E_NOTIMPL);
}
void *winrt_make_Microsoft_ReactNative_Composition_StreamImageResponse() {
winrt::throw_hresult(E_NOTIMPL);
}
void *winrt_make_Microsoft_ReactNative_Composition_Experimental_UriBrushFactoryImageResponse() {
winrt::throw_hresult(E_NOTIMPL);
}
void* winrt_make_Microsoft_ReactNative_ReactNativeIsland() {
winrt::throw_hresult(E_NOTIMPL);
}
Expand Down Expand Up @@ -65,6 +77,15 @@ void* __stdcall winrt_get_activation_factory([[maybe_unused]] std::wstring_view
return winrt_make_Microsoft_ReactNative_ReactNativeIsland();
}
#ifdef USE_WINUI3
if (requal(name, L"Microsoft.ReactNative.Composition.ImageFailedResponse")) {
return winrt_make_Microsoft_ReactNative_Composition_ImageFailedResponse();
}
if (requal(name, L"Microsoft.ReactNative.Composition.StreamImageResponse")) {
return winrt_make_Microsoft_ReactNative_Composition_StreamImageResponse();
}
if (requal(name, L"Microsoft.ReactNative.Composition.Experimental.UriBrushFactoryImageResponse")) {
return winrt_make_Microsoft_ReactNative_Composition_Experimental_UriBrushFactoryImageResponse();
}
if (requal(name, L"Microsoft.ReactNative.Composition.Experimental.MicrosoftCompositionContextHelper")) {
return winrt_make_Microsoft_ReactNative_Composition_Experimental_MicrosoftCompositionContextHelper();
}
Expand Down