#include <host_window.h>
Classes | |
| struct | HostWindowInitializationParams |
| struct | SavedWindowInfo |
Public Member Functions | |
| virtual | ~HostWindow () |
| HWND | GetWindowHandle () const |
| HWND | GetFlutterViewWindowHandle () const |
| void | SetContentSize (const WindowSizeRequest &size) |
| void | SetConstraints (const WindowConstraints &constraints) |
| virtual void | SetFullscreen (bool fullscreen, std::optional< FlutterEngineDisplayId > display_id) |
| virtual bool | GetFullscreen () const |
| HostWindow * | GetOwnerWindow () const |
| void | UpdateModalStateLayer () |
Static Public Member Functions | |
| static std::unique_ptr< HostWindow > | CreateRegularWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const WindowConstraints &preferred_constraints, LPCWSTR title, bool sized_to_content, bool resizable) |
| static std::unique_ptr< HostWindow > | CreateDialogWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const WindowConstraints &preferred_constraints, LPCWSTR title, HWND parent, bool sized_to_content, bool resizable) |
| static std::unique_ptr< HostWindow > | CreateTooltipWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowConstraints &preferred_constraints, GetWindowPositionCallback get_position_callback, HWND parent) |
| static std::unique_ptr< HostWindow > | CreatePopupWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowConstraints &preferred_constraints, GetWindowPositionCallback get_position_callback, HWND parent) |
| static std::unique_ptr< HostWindow > | CreateSatelliteWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const WindowConstraints &preferred_constraints, GetWindowPositionCallback get_position_callback, HWND parent, LPCWSTR title, bool sized_to_content, bool resizable) |
| static HostWindow * | GetThisFromHandle (HWND hwnd) |
| static ActualWindowSize | GetWindowContentSize (HWND hwnd) |
Protected Member Functions | |
| WindowArchetype | GetArchetype () const |
| void | InitializeFlutterView (HostWindowInitializationParams const ¶ms) |
| HostWindow (WindowManager *window_manager, FlutterWindowsEngine *engine) | |
| void | AlignOriginWithFrame () |
| virtual void | OnFirstFrame () |
| virtual LRESULT | HandleMessage (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
| void | HandleWindowActivation (HWND hwnd, WPARAM wparam) |
| void | EnableRecursively (bool enable) |
| HostWindow * | FindFirstEnabledDescendant () const |
| std::vector< HostWindow * > | GetOwnedWindows () const |
| void | DisableRecursively () |
| FML_DISALLOW_COPY_AND_ASSIGN (HostWindow) | |
Static Protected Member Functions | |
| static std::optional< Size > | GetWindowSizeForClientSize (WindowsProcTable const &win32, Size const &client_size, std::optional< Size > smallest, std::optional< Size > biggest, DWORD window_style, DWORD extended_window_style, std::optional< HWND > const &owner_hwnd) |
| static std::optional< Size > | GetInitialWindowSize (FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const BoxConstraints &constraints, DWORD window_style, DWORD extended_window_style, std::optional< HWND > const &owner_window, bool sized_to_content) |
| static void | FocusRootViewOf (HostWindow *window) |
| static LRESULT | WndProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
Protected Attributes | |
| friend | WindowManager |
| WindowManager *const | window_manager_ = nullptr |
| FlutterWindowsEngine * | engine_ |
| std::unique_ptr< FlutterWindowsViewController > | view_controller_ |
| std::shared_ptr< int > | alive_ = std::make_shared<int>(0) |
| WindowArchetype | archetype_ = WindowArchetype::kRegular |
| HWND | window_handle_ |
| BoxConstraints | box_constraints_ |
| bool | is_being_destroyed_ = false |
| bool | is_fullscreen_ = false |
| SavedWindowInfo | saved_window_info_ |
| Microsoft::WRL::ComPtr< ITaskbarList2 > | task_bar_list_ |
Definition at line 29 of file host_window.h.
|
virtual |
Definition at line 351 of file host_window.cc.
|
protected |
Definition at line 245 of file host_window.cc.
|
protected |
|
static |
Definition at line 192 of file host_window.cc.
Referenced by flutter::WindowManager::CreateDialogWindow().
|
static |
Definition at line 218 of file host_window.cc.
Referenced by flutter::WindowManager::CreatePopupWindow().
|
static |
Definition at line 178 of file host_window.cc.
Referenced by flutter::WindowManager::CreateRegularWindow().
|
static |
Definition at line 229 of file host_window.cc.
Referenced by flutter::WindowManager::CreateSatelliteWindow().
|
static |
Definition at line 207 of file host_window.cc.
Referenced by flutter::WindowManager::CreateTooltipWindow().
|
protected |
Definition at line 930 of file host_window.cc.
|
protected |
Definition at line 878 of file host_window.cc.
|
protected |
Definition at line 886 of file host_window.cc.
References FindFirstEnabledDescendant().
Referenced by FindFirstEnabledDescendant().
|
protected |
|
staticprotected |
Definition at line 385 of file host_window.cc.
References view_controller_.
Referenced by flutter::HostWindowDialog::HandleMessage().
|
inlineprotected |
Definition at line 177 of file host_window.h.
References archetype_.
Referenced by flutter::WindowManager::GetSatelliteWindowFromHandle().
| HWND flutter::HostWindow::GetFlutterViewWindowHandle | ( | ) | const |
Definition at line 381 of file host_window.cc.
References GetWindowHandle().
Referenced by flutter::WindowManager::HandleMessage().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 788 of file host_window.cc.
Referenced by InternalFlutterWindows_WindowManager_GetFullscreen().
|
staticprotected |
Definition at line 852 of file host_window.cc.
References flutter::WindowSizeRequest::preferred_view_height, flutter::WindowSizeRequest::preferred_view_width, and flutter::FlutterWindowsEngine::windows_proc_table().
|
protected |
Definition at line 900 of file host_window.cc.
References is_being_destroyed_.
| HostWindow * flutter::HostWindow::GetOwnerWindow | ( | ) | const |
Definition at line 923 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::testing::TEST_F().
|
static |
Definition at line 362 of file host_window.cc.
Referenced by flutter::WindowManager::GetSatelliteWindowFromHandle(), flutter::WindowManager::HandleMessage(), InternalFlutterWindows_WindowManager_GetFullscreen(), InternalFlutterWindows_WindowManager_SetFullscreen(), InternalFlutterWindows_WindowManager_SetWindowConstraints(), InternalFlutterWindows_WindowManager_SetWindowSize(), InternalFlutterWindows_WindowManager_UpdatePopupPosition(), InternalFlutterWindows_WindowManager_UpdateTooltipPosition(), and flutter::testing::TEST_F().
|
static |
Definition at line 792 of file host_window.cc.
References FlutterDesktopGetDpiForHWND().
Referenced by InternalFlutterWindows_WindowManager_GetWindowContentSize().
| HWND flutter::HostWindow::GetWindowHandle | ( | ) | const |
Definition at line 377 of file host_window.cc.
Referenced by GetFlutterViewWindowHandle(), and flutter::testing::TEST_F().
|
staticprotected |
Definition at line 805 of file host_window.cc.
References flutter::WindowsProcTable::AdjustWindowRectExForDpi(), and flutter::GetDpiForHWND().
Referenced by flutter::HostWindowSized::ApplyContentSize().
|
protectedvirtual |
Reimplemented in flutter::HostWindowTooltip, flutter::HostWindowSatellite, and flutter::HostWindowDialog.
Definition at line 432 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), flutter::HostWindowSatellite::HandleMessage(), and flutter::HostWindowTooltip::HandleMessage().
|
protected |
Definition at line 392 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::HostWindowSatellite::HandleMessage().
|
protected |
Definition at line 249 of file host_window.cc.
References AlignOriginWithFrame(), alive_, flutter::HostWindow::HostWindowInitializationParams::box_constraints, flutter::FlutterWindowsEngine::CreateView(), flutter::FlutterWindowsEngine::display_manager(), engine_, flutter::HostWindow::HostWindowInitializationParams::extended_window_style, flutter::HostWindow::HostWindowInitializationParams::initial_window_rect, flutter::HostWindow::HostWindowInitializationParams::is_sized_to_content, flutter::HostWindow::HostWindowInitializationParams::nCmdShow, OnFirstFrame(), flutter::HostWindow::HostWindowInitializationParams::owner_window, flutter::FlutterWindowsEngine::running(), flutter::HostWindow::HostWindowInitializationParams::sizing_delegate, flutter::HostWindow::HostWindowInitializationParams::title, flutter::FlutterWindowsEngine::UpdateAccessibilityFeatures(), view_controller_, window_handle_, flutter::HostWindow::HostWindowInitializationParams::window_style, flutter::FlutterWindowsEngine::windows_proc_table(), and WndProc().
Referenced by flutter::HostWindowDialog::HostWindowDialog(), and flutter::HostWindowRegular::HostWindowRegular().
|
protectedvirtual |
Reimplemented in flutter::HostWindowSatellite.
Definition at line 326 of file host_window.cc.
Referenced by InitializeFlutterView().
| void flutter::HostWindow::SetConstraints | ( | const WindowConstraints & | constraints | ) |
Definition at line 601 of file host_window.cc.
Referenced by InternalFlutterWindows_WindowManager_SetWindowConstraints().
| void flutter::HostWindow::SetContentSize | ( | const WindowSizeRequest & | size | ) |
Definition at line 559 of file host_window.cc.
References flutter::WindowSizeRequest::has_preferred_view_size.
Referenced by InternalFlutterWindows_WindowManager_SetWindowSize().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 642 of file host_window.cc.
References flutter::GetDpiForHWND().
Referenced by InternalFlutterWindows_WindowManager_SetFullscreen().
| void flutter::HostWindow::UpdateModalStateLayer | ( | ) |
Definition at line 939 of file host_window.cc.
|
staticprotected |
Definition at line 416 of file host_window.cc.
References flutter::WindowsProcTable::EnableNonClientDpiScaling(), and message.
Referenced by InitializeFlutterView().
|
protected |
Definition at line 319 of file host_window.h.
Referenced by InitializeFlutterView().
|
protected |
Definition at line 322 of file host_window.h.
Referenced by GetArchetype().
|
protected |
Definition at line 328 of file host_window.h.
Referenced by flutter::HostWindowSized::ApplyContentSize().
|
protected |
Definition at line 309 of file host_window.h.
Referenced by flutter::HostWindowSized::ApplyContentSize(), flutter::HostWindowDialog::HandleMessage(), flutter::HostWindowSatellite::HandleMessage(), and InitializeFlutterView().
|
protected |
Definition at line 331 of file host_window.h.
Referenced by GetOwnedWindows(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
Definition at line 334 of file host_window.h.
|
protected |
Definition at line 337 of file host_window.h.
|
protected |
Definition at line 340 of file host_window.h.
|
protected |
Definition at line 314 of file host_window.h.
Referenced by flutter::HostWindowSized::ApplyContentSize(), FocusRootViewOf(), flutter::WindowManager::HandleMessage(), InitializeFlutterView(), flutter::HostWindowPopup::UpdatePosition(), flutter::HostWindowTooltip::UpdatePosition(), flutter::HostWindowDialog::~HostWindowDialog(), flutter::HostWindowPopup::~HostWindowPopup(), flutter::HostWindowRegular::~HostWindowRegular(), flutter::HostWindowSatellite::~HostWindowSatellite(), flutter::HostWindowSized::~HostWindowSized(), and flutter::HostWindowTooltip::~HostWindowTooltip().
|
protected |
Definition at line 325 of file host_window.h.
Referenced by flutter::HostWindowSized::ApplyContentSize(), flutter::HostWindowDialog::HandleMessage(), flutter::HostWindowSatellite::HandleMessage(), flutter::HostWindowDialog::HostWindowDialog(), InitializeFlutterView(), flutter::HostWindowSatellite::OnParentMoved(), flutter::HostWindowSatellite::SetSatelliteParent(), flutter::HostWindowPopup::UpdatePosition(), and flutter::HostWindowTooltip::UpdatePosition().
|
protected |
Definition at line 306 of file host_window.h.
|
protected |
Definition at line 199 of file host_window.h.