Skip to content

Commit 4bc4143

Browse files
authored
Conditionalize plugin related wrapper (flutter#25540)
1 parent d9bdc46 commit 4bc4143

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shell/platform/windows/client_wrapper/include/flutter/plugin_registrar_windows.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class PluginRegistrarWindows : public PluginRegistrar {
4949

5050
FlutterView* GetView() { return view_.get(); }
5151

52+
#ifndef WINUWP
5253
// Registers |delegate| to receive WindowProc callbacks for the top-level
5354
// window containing this Flutter instance. Returns an ID that can be used to
5455
// unregister the handler.
@@ -80,8 +81,10 @@ class PluginRegistrarWindows : public PluginRegistrar {
8081
registrar(), PluginRegistrarWindows::OnTopLevelWindowProc);
8182
}
8283
}
84+
#endif
8385

8486
private:
87+
#ifndef WINUWP
8588
// A FlutterDesktopWindowProcCallback implementation that forwards back to
8689
// a PluginRegistarWindows instance provided as |user_data|.
8790
static bool OnTopLevelWindowProc(HWND hwnd,
@@ -113,14 +116,17 @@ class PluginRegistrarWindows : public PluginRegistrar {
113116
}
114117
return result;
115118
}
119+
#endif
116120

117121
// The associated FlutterView, if any.
118122
std::unique_ptr<FlutterView> view_;
119123

124+
#ifndef WINUWP
120125
// The next ID to return from RegisterWindowProcDelegate.
121126
int next_window_proc_delegate_id_ = 1;
122127

123128
std::map<int, WindowProcDelegate> window_proc_delegates_;
129+
#endif
124130
};
125131

126132
} // namespace flutter

0 commit comments

Comments
 (0)