| 38 | } |
| 39 | |
| 40 | LRESULT |
| 41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, |
| 42 | WPARAM const wparam, |
| 43 | LPARAM const lparam) noexcept { |
| 44 | // Give Flutter, including plugins, an opportunity to handle window messages. |
| 45 | if (flutter_controller_) { |
| 46 | std::optional<LRESULT> result = |
| 47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, |
| 48 | lparam); |
| 49 | if (result) { |
| 50 | return *result; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | switch (message) { |
| 55 | case WM_FONTCHANGE: |
| 56 | flutter_controller_->engine()->ReloadSystemFonts(); |
| 57 | break; |
| 58 | } |
| 59 | |
| 60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); |
| 61 | } |
nothing calls this directly
no outgoing calls
no test coverage detected