| 48 | } |
| 49 | |
| 50 | LRESULT |
| 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, |
| 52 | WPARAM const wparam, |
| 53 | LPARAM const lparam) noexcept { |
| 54 | // Give Flutter, including plugins, an opportunity to handle window messages. |
| 55 | if (flutter_controller_) { |
| 56 | std::optional<LRESULT> result = |
| 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, |
| 58 | lparam); |
| 59 | if (result) { |
| 60 | return *result; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | switch (message) { |
| 65 | case WM_FONTCHANGE: |
| 66 | flutter_controller_->engine()->ReloadSystemFonts(); |
| 67 | break; |
| 68 | } |
| 69 | |
| 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); |
| 71 | } |
nothing calls this directly
no outgoing calls
no test coverage detected