#include <host_window.h>
Classes | |
| struct | SavedWindowInfo |
Public Member Functions | |
| virtual | ~HostWindow () |
| HWND | GetWindowHandle () 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 HostWindow * | GetThisFromHandle (HWND hwnd) |
| static ActualWindowSize | GetWindowContentSize (HWND hwnd) |
Protected Member Functions | |
| HostWindow (WindowManager *window_manager, FlutterWindowsEngine *engine, WindowArchetype archetype, DWORD window_style, DWORD extended_window_style, const BoxConstraints &box_constraints, Rect const initial_window_rect, LPCWSTR title, std::optional< HWND > const &owner_window) | |
| 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 27 of file host_window.h.
|
virtual |
Definition at line 316 of file host_window.cc.
References ERROR_SUCCESS, SetLastError(), and view_controller_.
|
protected |
Definition at line 228 of file host_window.cc.
References engine, FML_CHECK, flutter::Rect::height(), flutter::Rect::left(), LoadIcon, flutter::Rect::top(), view, view_controller_, flutter::Rect::width(), window_handle_, and WndProc().
|
static |
Definition at line 215 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreateDialogWindow().
|
static |
Definition at line 204 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreateRegularWindow().
|
protected |
Definition at line 824 of file host_window.cc.
References GetOwnedWindows(), and window_handle_.
|
protected |
Definition at line 772 of file host_window.cc.
References GetOwnedWindows(), and window_handle_.
|
protected |
Definition at line 780 of file host_window.cc.
References FindFirstEnabledDescendant(), GetOwnedWindows(), and window_handle_.
Referenced by FindFirstEnabledDescendant(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
|
staticprotected |
Definition at line 346 of file host_window.cc.
References view_controller_, and window.
Referenced by HandleMessage(), and flutter::HostWindowDialog::HandleMessage().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 708 of file host_window.cc.
References is_fullscreen_.
Referenced by SetConstraints(), SetContentSize(), and SetFullscreen().
|
protected |
Definition at line 794 of file host_window.cc.
References flutter::data, GetThisFromHandle(), TRUE, window, and window_handle_.
Referenced by DisableRecursively(), EnableRecursively(), FindFirstEnabledDescendant(), and UpdateModalStateLayer().
| HostWindow * flutter::HostWindow::GetOwnerWindow | ( | ) | const |
Definition at line 817 of file host_window.cc.
References GetThisFromHandle(), and GetWindowHandle().
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::testing::TEST_F().
|
static |
Definition at line 327 of file host_window.cc.
References FML_LOG.
Referenced by GetOwnedWindows(), GetOwnerWindow(), InternalFlutterWindows_WindowManager_GetFullscreen(), InternalFlutterWindows_WindowManager_SetFullscreen(), InternalFlutterWindows_WindowManager_SetWindowConstraints(), InternalFlutterWindows_WindowManager_SetWindowSize(), flutter::testing::TEST_F(), and WndProc().
|
static |
Definition at line 712 of file host_window.cc.
References FlutterDesktopGetDpiForHWND(), height, and width.
Referenced by InternalFlutterWindows_WindowManager_GetWindowContentSize(), SetConstraints(), and SetFullscreen().
| HWND flutter::HostWindow::GetWindowHandle | ( | ) | const |
Definition at line 342 of file host_window.cc.
References window_handle_.
Referenced by GetOwnerWindow(), and flutter::testing::TEST_F().
|
staticprotected |
Definition at line 725 of file host_window.cc.
References flutter::WindowsProcTable::AdjustWindowRectExForDpi(), FML_LOG, flutter::GetDpiForHWND(), height, flutter::Size::height(), width, and flutter::Size::width().
Referenced by SetConstraints(), and SetContentSize().
|
protectedvirtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 370 of file host_window.cc.
References flutter::BoxConstraints::biggest(), box_constraints_, engine_, FocusRootViewOf(), flutter::GetDpiForHWND(), height, flutter::Size::height(), is_being_destroyed_, message, flutter::WindowProcDelegateManager::OnTopLevelWindowProc(), PostMessage, SendMessage, flutter::BoxConstraints::smallest(), TRUE, view_controller_, width, flutter::Size::width(), window_handle_, and flutter::FlutterWindowsEngine::window_proc_delegate_manager().
Referenced by flutter::HostWindowDialog::HandleMessage().
| void flutter::HostWindow::SetConstraints | ( | const WindowConstraints & | constraints | ) |
Definition at line 521 of file host_window.cc.
References flutter::BoxConstraints::biggest(), box_constraints_, flutter::HostWindow::SavedWindowInfo::client_size, engine_, flutter::HostWindow::SavedWindowInfo::ex_style, GetFullscreen(), GetWindowContentSize(), GetWindowSizeForClientSize(), flutter::ActualWindowSize::height, flutter::HostWindow::SavedWindowInfo::rect, saved_window_info_, flutter::BoxConstraints::smallest(), flutter::HostWindow::SavedWindowInfo::style, flutter::ActualWindowSize::width, window_handle_, and flutter::FlutterWindowsEngine::windows_proc_table().
| void flutter::HostWindow::SetContentSize | ( | const WindowSizeRequest & | size | ) |
Definition at line 479 of file host_window.cc.
References flutter::BoxConstraints::biggest(), box_constraints_, flutter::HostWindow::SavedWindowInfo::client_size, engine_, flutter::HostWindow::SavedWindowInfo::ex_style, GetFullscreen(), GetWindowSizeForClientSize(), flutter::HostWindow::SavedWindowInfo::rect, saved_window_info_, flutter::size, flutter::BoxConstraints::smallest(), flutter::HostWindow::SavedWindowInfo::style, flutter::ActualWindowSize::width, window_handle_, and flutter::FlutterWindowsEngine::windows_proc_table().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 562 of file host_window.cc.
References flutter::AreRectsEqual(), flutter::HostWindow::SavedWindowInfo::client_size, flutter::FlutterWindowsEngine::display_manager(), flutter::HostWindow::SavedWindowInfo::dpi, engine_, flutter::HostWindow::SavedWindowInfo::ex_style, FAILED, FML_LOG, flutter::GetDpiForHWND(), GetFullscreen(), GetWindowContentSize(), height, is_fullscreen_, flutter::HostWindow::SavedWindowInfo::monitor, flutter::HostWindow::SavedWindowInfo::monitor_info, flutter::HostWindow::SavedWindowInfo::rect, flutter::RectHeight(), flutter::RectWidth(), saved_window_info_, flutter::HostWindow::SavedWindowInfo::style, SUCCEEDED, task_bar_list_, width, and window_handle_.
| void flutter::HostWindow::UpdateModalStateLayer | ( | ) |
Definition at line 833 of file host_window.cc.
References GetOwnedWindows(), and window_handle_.
|
staticprotected |
Definition at line 353 of file host_window.cc.
References flutter::WindowsProcTable::EnableNonClientDpiScaling(), GetThisFromHandle(), message, and window.
Referenced by HostWindow().
|
protected |
Definition at line 196 of file host_window.h.
|
protected |
Definition at line 202 of file host_window.h.
Referenced by HandleMessage(), SetConstraints(), and SetContentSize().
|
protected |
Definition at line 188 of file host_window.h.
Referenced by HandleMessage(), SetConstraints(), SetContentSize(), and SetFullscreen().
|
protected |
Definition at line 205 of file host_window.h.
Referenced by HandleMessage(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
Definition at line 208 of file host_window.h.
Referenced by GetFullscreen(), and SetFullscreen().
|
protected |
Definition at line 211 of file host_window.h.
Referenced by SetConstraints(), SetContentSize(), and SetFullscreen().
|
protected |
Definition at line 214 of file host_window.h.
Referenced by SetFullscreen().
|
protected |
Definition at line 193 of file host_window.h.
Referenced by FocusRootViewOf(), HandleMessage(), HostWindow(), and ~HostWindow().
|
protected |
Definition at line 199 of file host_window.h.
Referenced by DisableRecursively(), EnableRecursively(), FindFirstEnabledDescendant(), GetOwnedWindows(), GetWindowHandle(), HandleMessage(), HostWindow(), flutter::HostWindowDialog::HostWindowDialog(), SetConstraints(), SetContentSize(), SetFullscreen(), and UpdateModalStateLayer().
|
protected |
Definition at line 185 of file host_window.h.
|
protected |
Definition at line 106 of file host_window.h.