#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 std::unique_ptr< HostWindow > | CreatePopupWindow (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 |
| WindowArchetype | GetArchetype () 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 339 of file host_window.cc.
References ERROR_SUCCESS, and SetLastError().
|
protected |
Definition at line 252 of file host_window.cc.
|
static |
Definition at line 217 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreateDialogWindow().
|
static |
Definition at line 241 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreatePopupWindow().
|
static |
Definition at line 206 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreateRegularWindow().
|
static |
Definition at line 230 of file host_window.cc.
References engine.
Referenced by flutter::WindowManager::CreateTooltipWindow().
|
protected |
Definition at line 851 of file host_window.cc.
|
protected |
Definition at line 799 of file host_window.cc.
|
protected |
Definition at line 807 of file host_window.cc.
References FindFirstEnabledDescendant().
Referenced by FindFirstEnabledDescendant(), and flutter::HostWindowDialog::HandleMessage().
|
protected |
|
staticprotected |
Definition at line 373 of file host_window.cc.
References window.
Referenced by flutter::HostWindowDialog::HandleMessage().
|
inlineprotected |
| HWND flutter::HostWindow::GetFlutterViewWindowHandle | ( | ) | const |
Definition at line 369 of file host_window.cc.
References GetWindowHandle().
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 735 of file host_window.cc.
|
protected |
Definition at line 821 of file host_window.cc.
References flutter::data, TRUE, and window.
| HostWindow * flutter::HostWindow::GetOwnerWindow | ( | ) | const |
Definition at line 844 of file host_window.cc.
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::testing::TEST_F().
|
static |
Definition at line 350 of file host_window.cc.
References FML_LOG.
Referenced by flutter::WindowManager::HandleMessage(), InternalFlutterWindows_WindowManager_GetFullscreen(), InternalFlutterWindows_WindowManager_OnDestroyWindow(), InternalFlutterWindows_WindowManager_SetFullscreen(), InternalFlutterWindows_WindowManager_SetWindowConstraints(), InternalFlutterWindows_WindowManager_SetWindowSize(), InternalFlutterWindows_WindowManager_UpdatePopupPosition(), InternalFlutterWindows_WindowManager_UpdateTooltipPosition(), and flutter::testing::TEST_F().
|
static |
Definition at line 739 of file host_window.cc.
References FlutterDesktopGetDpiForHWND(), height, and width.
Referenced by InternalFlutterWindows_WindowManager_GetWindowContentSize().
| HWND flutter::HostWindow::GetWindowHandle | ( | ) | const |
Definition at line 365 of file host_window.cc.
Referenced by GetFlutterViewWindowHandle(), and flutter::testing::TEST_F().
|
staticprotected |
Definition at line 752 of file host_window.cc.
References flutter::WindowsProcTable::AdjustWindowRectExForDpi(), FML_LOG, flutter::GetDpiForHWND(), height, flutter::Size::height(), width, and flutter::Size::width().
|
protectedvirtual |
Reimplemented in flutter::HostWindowDialog, and flutter::HostWindowTooltip.
Definition at line 397 of file host_window.cc.
References flutter::GetDpiForHWND(), height, flutter::Size::height(), message, PostMessage, SendMessage, TRUE, width, and flutter::Size::width().
Referenced by flutter::HostWindowDialog::HandleMessage(), and flutter::HostWindowTooltip::HandleMessage().
|
protected |
Definition at line 256 of file host_window.cc.
References flutter::FlutterWindowsEngine::CreateView(), flutter::FlutterWindowsEngine::display_manager(), engine_, FML_CHECK, LoadIcon, params, flutter::FlutterWindowsEngine::running(), flutter::FlutterWindowsEngine::UpdateAccessibilityFeatures(), view, view_controller_, window_handle_, flutter::FlutterWindowsEngine::windows_proc_table(), and WndProc().
Referenced by flutter::HostWindowDialog::HostWindowDialog(), flutter::HostWindowPopup::HostWindowPopup(), flutter::HostWindowRegular::HostWindowRegular(), and flutter::HostWindowTooltip::HostWindowTooltip().
| void flutter::HostWindow::SetConstraints | ( | const WindowConstraints & | constraints | ) |
Definition at line 548 of file host_window.cc.
| void flutter::HostWindow::SetContentSize | ( | const WindowSizeRequest & | size | ) |
Definition at line 506 of file host_window.cc.
References flutter::size, and flutter::ActualWindowSize::width.
|
virtual |
Reimplemented in flutter::HostWindowDialog.
Definition at line 589 of file host_window.cc.
References flutter::AreRectsEqual(), FAILED, FML_LOG, flutter::GetDpiForHWND(), height, flutter::RectHeight(), flutter::RectWidth(), SUCCEEDED, and width.
| void flutter::HostWindow::UpdateModalStateLayer | ( | ) |
Definition at line 860 of file host_window.cc.
|
staticprotected |
Definition at line 380 of file host_window.cc.
References flutter::WindowsProcTable::EnableNonClientDpiScaling(), message, and window.
Referenced by InitializeFlutterView().
|
protected |
Definition at line 250 of file host_window.h.
Referenced by GetArchetype().
|
protected |
Definition at line 256 of file host_window.h.
|
protected |
Definition at line 242 of file host_window.h.
Referenced by flutter::HostWindowDialog::HandleMessage(), and InitializeFlutterView().
|
protected |
Definition at line 259 of file host_window.h.
Referenced by flutter::HostWindowDialog::HandleMessage().
|
protected |
Definition at line 262 of file host_window.h.
|
protected |
Definition at line 265 of file host_window.h.
|
protected |
Definition at line 268 of file host_window.h.
|
protected |
Definition at line 247 of file host_window.h.
Referenced by flutter::WindowManager::HandleMessage(), InitializeFlutterView(), flutter::HostWindowPopup::UpdatePosition(), and flutter::HostWindowTooltip::UpdatePosition().
|
protected |
Definition at line 253 of file host_window.h.
Referenced by flutter::HostWindowDialog::HandleMessage(), flutter::HostWindowDialog::HostWindowDialog(), flutter::HostWindowTooltip::HostWindowTooltip(), InitializeFlutterView(), flutter::HostWindowPopup::UpdatePosition(), and flutter::HostWindowTooltip::UpdatePosition().
|
protected |
Definition at line 239 of file host_window.h.
|
protected |
Definition at line 166 of file host_window.h.