#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) |
| static std::unique_ptr< HostWindow > | CreateDialogWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const WindowConstraints &preferred_constraints, LPCWSTR title, HWND parent) |
| static std::unique_ptr< HostWindow > | CreateTooltipWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowConstraints &preferred_constraints, GetWindowPositionCallback get_position_callback, HWND parent) |
| static HostWindow * | GetThisFromHandle (HWND hwnd) |
| static ActualWindowSize | GetWindowContentSize (HWND hwnd) |
Protected Member Functions | |
| void | InitializeFlutterView (HostWindowInitializationParams const ¶ms) |
| HostWindow (WindowManager *window_manager, FlutterWindowsEngine *engine) | |
| virtual LRESULT | HandleMessage (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) |
| 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 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_ |
| 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 326 of file host_window.cc.
|
protected |
Definition at line 240 of file host_window.cc.
|
static |
Definition at line 216 of file host_window.cc.
Referenced by flutter::WindowManager::CreateDialogWindow().
|
static |
Definition at line 205 of file host_window.cc.
Referenced by flutter::WindowManager::CreateRegularWindow().
|
static |
Definition at line 229 of file host_window.cc.
Referenced by flutter::WindowManager::CreateTooltipWindow().
|
protected |
Definition at line 838 of file host_window.cc.
|
protected |
Definition at line 786 of file host_window.cc.
|
protected |
Definition at line 794 of file host_window.cc.
References FindFirstEnabledDescendant().
Referenced by FindFirstEnabledDescendant(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
|
staticprotected |
Definition at line 360 of file host_window.cc.
References view_controller_.
Referenced by flutter::HostWindowDialog::HandleMessage().
| HWND flutter::HostWindow::GetFlutterViewWindowHandle | ( | ) | const |
Definition at line 356 of file host_window.cc.
References GetWindowHandle().
Referenced by InternalFlutterWindows_WindowManager_OnDestroyWindow().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 722 of file host_window.cc.
Referenced by InternalFlutterWindows_WindowManager_GetFullscreen().
|
protected |
Definition at line 808 of file host_window.cc.
References is_being_destroyed_.
| HostWindow * flutter::HostWindow::GetOwnerWindow | ( | ) | const |
Definition at line 831 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::testing::TEST_F().
|
static |
Definition at line 337 of file host_window.cc.
Referenced by flutter::WindowManager::HandleMessage(), InternalFlutterWindows_WindowManager_GetFullscreen(), InternalFlutterWindows_WindowManager_OnDestroyWindow(), InternalFlutterWindows_WindowManager_SetFullscreen(), InternalFlutterWindows_WindowManager_SetWindowConstraints(), InternalFlutterWindows_WindowManager_SetWindowSize(), InternalFlutterWindows_WindowManager_UpdateTooltipPosition(), and flutter::testing::TEST_F().
|
static |
Definition at line 726 of file host_window.cc.
References FlutterDesktopGetDpiForHWND().
Referenced by InternalFlutterWindows_WindowManager_GetWindowContentSize().
| HWND flutter::HostWindow::GetWindowHandle | ( | ) | const |
Definition at line 352 of file host_window.cc.
Referenced by GetFlutterViewWindowHandle(), and flutter::testing::TEST_F().
|
staticprotected |
Definition at line 739 of file host_window.cc.
References flutter::WindowsProcTable::AdjustWindowRectExForDpi(), and flutter::GetDpiForHWND().
|
protectedvirtual |
Reimplemented in flutter::HostWindowTooltip, and flutter::HostWindowDialog.
Definition at line 384 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::HostWindowTooltip::HandleMessage().
|
protected |
Definition at line 244 of file host_window.cc.
References 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, 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().
| void flutter::HostWindow::SetConstraints | ( | const WindowConstraints & | constraints | ) |
Definition at line 535 of file host_window.cc.
Referenced by InternalFlutterWindows_WindowManager_SetWindowConstraints().
| void flutter::HostWindow::SetContentSize | ( | const WindowSizeRequest & | size | ) |
Definition at line 493 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 576 of file host_window.cc.
References flutter::GetDpiForHWND().
Referenced by InternalFlutterWindows_WindowManager_SetFullscreen().
| void flutter::HostWindow::UpdateModalStateLayer | ( | ) |
Definition at line 847 of file host_window.cc.
|
staticprotected |
Definition at line 367 of file host_window.cc.
References flutter::WindowsProcTable::EnableNonClientDpiScaling(), and message.
Referenced by InitializeFlutterView().
|
protected |
Definition at line 219 of file host_window.h.
|
protected |
Definition at line 225 of file host_window.h.
|
protected |
Definition at line 211 of file host_window.h.
Referenced by InitializeFlutterView().
|
protected |
Definition at line 228 of file host_window.h.
Referenced by GetOwnedWindows(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
Definition at line 231 of file host_window.h.
|
protected |
Definition at line 234 of file host_window.h.
|
protected |
Definition at line 237 of file host_window.h.
|
protected |
Definition at line 216 of file host_window.h.
Referenced by FocusRootViewOf(), flutter::WindowManager::HandleMessage(), InitializeFlutterView(), and flutter::HostWindowTooltip::UpdatePosition().
|
protected |
Definition at line 222 of file host_window.h.
Referenced by flutter::HostWindowDialog::HostWindowDialog(), InitializeFlutterView(), and flutter::HostWindowTooltip::UpdatePosition().
|
protected |
Definition at line 208 of file host_window.h.
|
protected |
Definition at line 138 of file host_window.h.