5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_SATELLITE_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_SATELLITE_H_
33 const BoxConstraints& constraints,
37 bool sized_to_content,
56 LPARAM lparam)
override;
66 int32_t physical_height)
override;
71 static DWORD GetWindowStyleForSatellite(
bool resizable);
81 const BoxConstraints& constraints,
83 bool sized_to_content,
96 void ApplyInitialPosition();
101 std::optional<WindowRect> ComputePosition(
106 std::optional<POINT> GetParentClientOrigin()
const;
109 double GetParentScaleFactor()
const;
112 void UpdateParentOffset();
123 double parent_offset_x_ = 0;
124 double parent_offset_y_ = 0;
128 bool is_following_parent_ =
false;
131 bool is_in_move_size_loop_ =
false;
134 bool initial_position_applied_ =
false;
void OnFirstFrame() override
HostWindowSatellite(WindowManager *window_manager, FlutterWindowsEngine *engine, const WindowSizeRequest &preferred_size, const BoxConstraints &constraints, GetWindowPositionCallback get_position_callback, HWND parent, LPCWSTR title, bool sized_to_content, bool resizable)
LRESULT HandleMessage(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) override
void ApplyContentSize(int32_t physical_width, int32_t physical_height) override
~HostWindowSatellite() override
void SetSatelliteParent(HWND new_parent)
void(* GetWindowPositionCallback)(const WindowSize &child_size, const WindowRect &parent_rect, const WindowRect &display_rect, WindowRect &output_rect)