#include <windows_lifecycle_manager.h>
Public Member Functions | |
WindowsLifecycleManager (FlutterWindowsEngine *engine) | |
virtual | ~WindowsLifecycleManager () |
virtual void | Quit (std::optional< HWND > window, std::optional< WPARAM > wparam, std::optional< LPARAM > lparam, UINT exit_code) |
bool | WindowProc (HWND hwnd, UINT msg, WPARAM w, LPARAM l, LRESULT *result) |
virtual void | BeginProcessingLifecycle () |
virtual void | BeginProcessingExit () |
virtual void | SetLifecycleState (AppLifecycleState state) |
virtual void | OnWindowStateEvent (HWND hwnd, WindowStateEvent event) |
AppLifecycleState | GetLifecycleState () |
std::optional< LRESULT > | ExternalWindowMessage (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
Protected Member Functions | |
virtual bool | IsLastWindowOfProcess () |
virtual void | DispatchMessage (HWND window, UINT msg, WPARAM wparam, LPARAM lparam) |
A manager for lifecycle events of the top-level windows.
WndProc is called for window messages of the top-level Flutter window. ExternalWindowMessage is called for non-flutter top-level window messages. OnWindowStateEvent is called when the visibility or focus state of a window is changed, including the FlutterView window.
Definition at line 37 of file windows_lifecycle_manager.h.
flutter::WindowsLifecycleManager::WindowsLifecycleManager | ( | FlutterWindowsEngine * | engine | ) |
Definition at line 16 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 19 of file windows_lifecycle_manager.cc.
|
virtual |
Definition at line 191 of file windows_lifecycle_manager.cc.
|
virtual |
Reimplemented in flutter::testing::MockWindowsLifecycleManager.
Definition at line 187 of file windows_lifecycle_manager.cc.
Referenced by flutter::testing::MockWindowsLifecycleManager::BeginProcessingLifecycle().
|
protectedvirtual |
Definition at line 34 of file windows_lifecycle_manager.cc.
References message.
Referenced by Quit().
std::optional< LRESULT > flutter::WindowsLifecycleManager::ExternalWindowMessage | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wparam, | ||
LPARAM | lparam | ||
) |
Definition at line 256 of file windows_lifecycle_manager.cc.
References flutter::kFocus, flutter::kHide, flutter::kShow, flutter::kUnfocus, and message.
|
inline |
Definition at line 75 of file windows_lifecycle_manager.h.
Referenced by flutter::testing::TEST_F().
|
protectedvirtual |
Definition at line 164 of file windows_lifecycle_manager.cc.
References flutter::ThreadSnapshot::GetFirstThread(), flutter::ThreadSnapshot::GetNextThread(), and flutter::NumWindowsForThread().
|
virtual |
Definition at line 208 of file windows_lifecycle_manager.cc.
Referenced by flutter::testing::TEST_F(), and WindowProc().
|
virtual |
|
virtual |
Definition at line 195 of file windows_lifecycle_manager.cc.
Referenced by flutter::testing::TEST_F().
bool flutter::WindowsLifecycleManager::WindowProc | ( | HWND | hwnd, |
UINT | msg, | ||
WPARAM | w, | ||
LPARAM | l, | ||
LRESULT * | result | ||
) |
Definition at line 65 of file windows_lifecycle_manager.cc.
References flutter::kHide, flutter::kShow, flutter::FlutterWindowsEngine::OnDwmCompositionChanged(), and OnWindowStateEvent().