Skip to content

Commit

Permalink
[Fabric] [Win32] Add image response APIs to win32 exports (#13428)
Browse files Browse the repository at this point in the history
* Add image response APIs to win32 exports

* Change files

* fix
  • Loading branch information
acoates-ms authored Jul 10, 2024
1 parent d6679da commit a96adfa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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

0 comments on commit a96adfa

Please # to comment.