5#include "flutter/shell/platform/windows/window_proc_delegate_manager.h"
9#include "flutter/shell/platform/embedder/embedder.h"
30 std::remove_if(delegates_.begin(), delegates_.end(),
32 return delegate.callback == callback;
42 std::optional<LRESULT>
result;
43 for (
const auto& delegate : delegates_) {
46 if (delegate.callback(hwnd,
message, wparam, lparam, delegate.user_data,
std::optional< LRESULT > OnTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) const
void UnregisterTopLevelWindowProcDelegate(FlutterDesktopWindowProcCallback callback)
WindowProcDelegateManager()
~WindowProcDelegateManager()
void RegisterTopLevelWindowProcDelegate(FlutterDesktopWindowProcCallback callback, void *user_data)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
bool(* FlutterDesktopWindowProcCallback)(HWND, UINT, WPARAM, LPARAM, void *, LRESULT *result)
std::function< std::optional< LRESULT >(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)> WindowProcDelegate