Flutter Windows Embedder
host_window_popup.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_POPUP_H_
6
#define FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_POPUP_H_
7
8
#include <cstdint>
9
#include "
host_window_sized.h
"
10
#include "
shell/platform/windows/flutter_windows_view.h
"
11
#include "
shell/platform/windows/window_manager.h
"
12
13
namespace
flutter
{
14
class
HostWindowPopup
:
public
HostWindowSized
{
15
public
:
16
// Creates a popup window.
17
HostWindowPopup
(
WindowManager
* window_manager,
18
FlutterWindowsEngine
* engine,
19
const
BoxConstraints& constraints,
20
GetWindowPositionCallback
get_position_callback,
21
HWND parent);
22
23
// Update the position of the popup window based off the current size
24
// of the popup.
25
void
UpdatePosition
();
26
27
~HostWindowPopup
()
override
;
28
29
protected
:
30
void
ApplyContentSize
(int32_t physical_width,
31
int32_t physical_height)
override
;
32
33
private
:
34
WindowRect
GetWorkArea()
const override
;
35
36
GetWindowPositionCallback
get_position_callback_;
37
HWND parent_;
38
Isolate
isolate_;
39
};
40
}
// namespace flutter
41
42
#endif
// FLUTTER_SHELL_PLATFORM_WINDOWS_HOST_WINDOW_POPUP_H_
flutter::FlutterWindowsEngine
Definition:
flutter_windows_engine.h:92
flutter::HostWindowPopup
Definition:
host_window_popup.h:14
flutter::HostWindowPopup::HostWindowPopup
HostWindowPopup(WindowManager *window_manager, FlutterWindowsEngine *engine, const BoxConstraints &constraints, GetWindowPositionCallback get_position_callback, HWND parent)
Definition:
host_window_popup.cc:12
flutter::HostWindowPopup::UpdatePosition
void UpdatePosition()
Definition:
host_window_popup.cc:72
flutter::HostWindowPopup::~HostWindowPopup
~HostWindowPopup() override
Definition:
host_window_popup.cc:42
flutter::HostWindowPopup::ApplyContentSize
void ApplyContentSize(int32_t physical_width, int32_t physical_height) override
Definition:
host_window_popup.cc:50
flutter::HostWindowSized
Definition:
host_window_sized.h:26
flutter::Isolate
Definition:
isolate_scope.h:15
flutter::WindowManager
Definition:
window_manager.h:118
flutter_windows_view.h
host_window_sized.h
flutter
Definition:
accessibility_bridge_windows.cc:11
flutter::GetWindowPositionCallback
WindowRect *(* GetWindowPositionCallback)(const WindowSize &child_size, const WindowRect &parent_rect, const WindowRect &output_rect)
Definition:
window_manager.h:73
flutter::WindowRect
Definition:
window_manager.h:42
window_manager.h
shell
platform
windows
host_window_popup.h
Generated by
1.9.1