#include <flutter_windows_engine.h>
Static Public Member Functions | |
static FlutterWindowsEngine * | GetEngineForId (int64_t engine_id) |
Protected Member Functions | |
virtual std::unique_ptr< KeyboardHandlerBase > | CreateKeyboardKeyHandler (BinaryMessenger *messenger, KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state, KeyboardKeyEmbedderHandler::MapVirtualKeyToScanCode map_vk_to_scan) |
virtual std::unique_ptr< TextInputPlugin > | CreateTextInputPlugin (BinaryMessenger *messenger) |
void | OnPreEngineRestart () |
virtual void | OnChannelUpdate (std::string name, bool listening) |
virtual void | OnViewFocusChangeRequest (const FlutterViewFocusChangeRequest *request) |
Friends | |
class | EngineModifier |
Definition at line 90 of file flutter_windows_engine.h.
flutter::FlutterWindowsEngine::FlutterWindowsEngine | ( | const FlutterProjectBundle & | project, |
std::shared_ptr< WindowsProcTable > | windows_proc_table = nullptr |
||
) |
Definition at line 149 of file flutter_windows_engine.cc.
References flutter::egl::ProcTable::Create().
|
virtual |
Definition at line 231 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::AddPluginRegistrarDestructionCallback | ( | FlutterDesktopOnPluginRegistrarDestroyed | callback, |
FlutterDesktopPluginRegistrarRef | registrar | ||
) |
Definition at line 692 of file flutter_windows_engine.cc.
References callback.
Referenced by FlutterDesktopPluginRegistrarSetDestructionHandler().
|
protectedvirtual |
Definition at line 844 of file flutter_windows_engine.cc.
|
protectedvirtual |
Definition at line 862 of file flutter_windows_engine.cc.
std::unique_ptr< FlutterWindowsView > flutter::FlutterWindowsEngine::CreateView | ( | std::unique_ptr< WindowBindingHandler > | window | ) |
bool flutter::FlutterWindowsEngine::DispatchSemanticsAction | ( | uint64_t | id, |
FlutterSemanticsAction | action, | ||
fml::MallocMapping | data | ||
) |
Definition at line 903 of file flutter_windows_engine.cc.
Referenced by flutter::AccessibilityBridgeWindows::DispatchAccessibilityAction().
|
inline |
|
static |
Definition at line 236 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineForId().
std::string flutter::FlutterWindowsEngine::GetExecutableName | ( | ) | const |
Definition at line 929 of file flutter_windows_engine.cc.
FlutterDesktopPluginRegistrarRef flutter::FlutterWindowsEngine::GetRegistrar | ( | ) |
Definition at line 688 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineGetPluginRegistrar().
void flutter::FlutterWindowsEngine::HandlePlatformMessage | ( | const FlutterPlatformMessage * | engine_message | ) |
|
inline |
Definition at line 257 of file flutter_windows_engine.h.
|
inline |
Definition at line 191 of file flutter_windows_engine.h.
Referenced by flutter::FlutterWindowsView::OnPointerMove().
|
inline |
Definition at line 302 of file flutter_windows_engine.h.
bool flutter::FlutterWindowsEngine::MarkExternalTextureFrameAvailable | ( | int64_t | texture_id | ) |
Definition at line 877 of file flutter_windows_engine.cc.
|
inline |
Definition at line 157 of file flutter_windows_engine.h.
Referenced by FlutterDesktopMessengerSetCallback().
|
inline |
Definition at line 155 of file flutter_windows_engine.h.
Referenced by FlutterDesktopEngineGetMessenger(), and FlutterDesktopPluginRegistrarGetMessenger().
|
inline |
Definition at line 163 of file flutter_windows_engine.h.
|
protectedvirtual |
Definition at line 1005 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::OnDwmCompositionChanged | ( | ) |
Definition at line 980 of file flutter_windows_engine.cc.
Referenced by flutter::WindowsLifecycleManager::WindowProc().
|
protected |
Definition at line 924 of file flutter_windows_engine.cc.
Referenced by Run().
void flutter::FlutterWindowsEngine::OnQuit | ( | std::optional< HWND > | hwnd, |
std::optional< WPARAM > | wparam, | ||
std::optional< LPARAM > | lparam, | ||
UINT | exit_code | ||
) |
Definition at line 973 of file flutter_windows_engine.cc.
Referenced by flutter::PlatformHandler::QuitApplication().
|
protectedvirtual |
Definition at line 1013 of file flutter_windows_engine.cc.
References flutter::FlutterWindowsView::Focus().
Referenced by Run().
void flutter::FlutterWindowsEngine::OnVsync | ( | intptr_t | baton | ) |
void flutter::FlutterWindowsEngine::OnWindowStateEvent | ( | HWND | hwnd, |
WindowStateEvent | event | ||
) |
Definition at line 988 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::OnWindowStateEvent(), and flutter::FlutterWindowsView::~FlutterWindowsView().
|
virtual |
Definition at line 883 of file flutter_windows_engine.cc.
References callback.
Referenced by flutter::FlutterWindowsTextureRegistrar::UnregisterTexture().
std::optional< LRESULT > flutter::FlutterWindowsEngine::ProcessExternalWindowMessage | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wparam, | ||
LPARAM | lparam | ||
) |
Definition at line 993 of file flutter_windows_engine.cc.
References message.
Referenced by FlutterDesktopEngineProcessExternalWindowMessage().
bool flutter::FlutterWindowsEngine::RegisterExternalTexture | ( | int64_t | texture_id | ) |
Definition at line 867 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::ReloadSystemFonts | ( | ) |
Definition at line 781 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineReloadSystemFonts().
|
virtual |
void flutter::FlutterWindowsEngine::RequestApplicationQuit | ( | HWND | hwnd, |
WPARAM | wparam, | ||
LPARAM | lparam, | ||
AppExitType | exit_type | ||
) |
Definition at line 966 of file flutter_windows_engine.cc.
bool flutter::FlutterWindowsEngine::Run | ( | ) |
Definition at line 245 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineRun().
bool flutter::FlutterWindowsEngine::Run | ( | std::string_view | entrypoint | ) |
Definition at line 249 of file flutter_windows_engine.cc.
References flutter::FlutterWindowsView::accessibility_bridge(), action, HandlePlatformMessage(), flutter::kImplicitViewId, OnPreEngineRestart(), OnViewFocusChangeRequest(), OnVsync(), RunOnPlatformThread, user_data, view(), and flutter::WindowsPlatformThreadPrioritySetter().
|
inlinevirtual |
Definition at line 123 of file flutter_windows_engine.h.
Referenced by FlutterDesktopEngineDestroy().
void flutter::FlutterWindowsEngine::ScheduleFrame | ( | ) |
Definition at line 785 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::ForceRedraw().
|
inline |
Definition at line 248 of file flutter_windows_engine.h.
Referenced by flutter::AccessibilityPlugin::Announce().
void flutter::FlutterWindowsEngine::SendKeyEvent | ( | const FlutterKeyEvent & | event, |
FlutterKeyEventCallback | callback, | ||
void * | user_data | ||
) |
Definition at line 711 of file flutter_windows_engine.cc.
bool flutter::FlutterWindowsEngine::SendPlatformMessage | ( | const char * | channel, |
const uint8_t * | message, | ||
const size_t | message_size, | ||
const FlutterDesktopBinaryReply | reply, | ||
void * | user_data | ||
) |
Definition at line 726 of file flutter_windows_engine.cc.
References user_data.
Referenced by FlutterDesktopMessengerSendWithReply().
void flutter::FlutterWindowsEngine::SendPlatformMessageResponse | ( | const FlutterDesktopMessageResponseHandle * | handle, |
const uint8_t * | data, | ||
size_t | data_length | ||
) |
Definition at line 760 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopMessengerSendResponse().
void flutter::FlutterWindowsEngine::SendPointerEvent | ( | const FlutterPointerEvent & | event | ) |
Definition at line 705 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::SendViewFocusEvent | ( | const FlutterViewFocusEvent & | event | ) |
Definition at line 719 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::SendWindowMetricsEvent | ( | const FlutterWindowMetricsEvent & | event | ) |
Definition at line 698 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::SendInitialBounds().
void flutter::FlutterWindowsEngine::SetNextFrameCallback | ( | fml::closure | callback | ) |
Definition at line 789 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineSetNextFrameCallback().
|
inline |
Definition at line 268 of file flutter_windows_engine.h.
References callback.
void flutter::FlutterWindowsEngine::SetSwitches | ( | const std::vector< std::string > & | switches | ) |
Definition at line 240 of file flutter_windows_engine.cc.
References SetSwitches().
Referenced by SetSwitches().
|
virtual |
Definition at line 502 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineDestroy().
|
inline |
Definition at line 161 of file flutter_windows_engine.h.
Referenced by flutter::FlutterWindowsTextureRegistrar::MarkTextureFrameAvailable(), flutter::FlutterWindowsView::OnFramePresented(), flutter::FlutterWindowsView::OnWindowSizeChanged(), and flutter::FlutterWindowsTextureRegistrar::UnregisterTexture().
|
inline |
Definition at line 194 of file flutter_windows_engine.h.
|
inline |
Definition at line 165 of file flutter_windows_engine.h.
Referenced by FlutterDesktopRegistrarGetTextureRegistrar().
bool flutter::FlutterWindowsEngine::UnregisterExternalTexture | ( | int64_t | texture_id | ) |
Definition at line 872 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::UpdateAccessibilityFeatures | ( | ) |
Definition at line 943 of file flutter_windows_engine.cc.
Referenced by flutter::testing::TEST_F().
void flutter::FlutterWindowsEngine::UpdateHighContrastMode | ( | ) |
Definition at line 947 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::OnHighContrastChanged().
void flutter::FlutterWindowsEngine::UpdateSemanticsEnabled | ( | bool | enabled | ) |
Definition at line 912 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::OnUpdateSemanticsEnabled(), and flutter::testing::TEST_F().
FlutterWindowsView * flutter::FlutterWindowsEngine::view | ( | FlutterViewId | view_id | ) | const |
Definition at line 676 of file flutter_windows_engine.cc.
Referenced by flutter::AccessibilityPlugin::Announce(), FlutterDesktopPluginRegistrarGetView(), FlutterDesktopPluginRegistrarGetViewById(), flutter::PlatformHandler::GetHasStrings(), flutter::PlatformHandler::GetPlainText(), Run(), and flutter::PlatformHandler::SetPlainText().
|
inline |
Definition at line 173 of file flutter_windows_engine.h.
Referenced by FlutterDesktopPluginRegistrarRegisterTopLevelWindowProcDelegate(), and FlutterDesktopPluginRegistrarUnregisterTopLevelWindowProcDelegate().
|
inline |
Definition at line 306 of file flutter_windows_engine.h.
Referenced by CreateViewController().
|
friend |
Definition at line 342 of file flutter_windows_engine.h.