5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_WINDOWS_LIFECYCLE_MANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_WINDOWS_LIFECYCLE_MANAGER_H_
20 class FlutterWindowsEngine;
46 virtual void Quit(std::optional<HWND> window,
47 std::optional<WPARAM> wparam,
48 std::optional<LPARAM> lparam,
53 bool WindowProc(HWND hwnd, UINT msg, WPARAM w, LPARAM l, LRESULT* result);
107 bool HandleCloseMessage(HWND hwnd, WPARAM wparam, LPARAM lparam);
111 std::map<std::tuple<HWND, WPARAM, LPARAM>,
int> sent_close_messages_;
113 bool process_lifecycle_ =
false;
114 bool process_exit_ =
false;
116 std::set<HWND> visible_windows_;
118 std::set<HWND> focused_windows_;
120 std::mutex state_update_lock_;
127 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_WINDOWS_LIFECYCLE_MANAGER_H_