#include <flutter_windows_engine.h>
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) |
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 147 of file flutter_windows_engine.cc.
References flutter::egl::ProcTable::Create().
|
virtual |
Definition at line 229 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::AddPluginRegistrarDestructionCallback | ( | FlutterDesktopOnPluginRegistrarDestroyed | callback, |
FlutterDesktopPluginRegistrarRef | registrar | ||
) |
Definition at line 672 of file flutter_windows_engine.cc.
References callback.
Referenced by FlutterDesktopPluginRegistrarSetDestructionHandler().
|
protectedvirtual |
Definition at line 817 of file flutter_windows_engine.cc.
|
protectedvirtual |
Definition at line 835 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 876 of file flutter_windows_engine.cc.
Referenced by flutter::AccessibilityBridgeWindows::DispatchAccessibilityAction().
|
inline |
std::string flutter::FlutterWindowsEngine::GetExecutableName | ( | ) | const |
Definition at line 902 of file flutter_windows_engine.cc.
FlutterDesktopPluginRegistrarRef flutter::FlutterWindowsEngine::GetRegistrar | ( | ) |
Definition at line 668 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineGetPluginRegistrar().
void flutter::FlutterWindowsEngine::HandlePlatformMessage | ( | const FlutterPlatformMessage * | engine_message | ) |
|
inline |
Definition at line 248 of file flutter_windows_engine.h.
|
inline |
Definition at line 182 of file flutter_windows_engine.h.
Referenced by flutter::FlutterWindowsView::OnPointerMove().
|
inline |
Definition at line 293 of file flutter_windows_engine.h.
bool flutter::FlutterWindowsEngine::MarkExternalTextureFrameAvailable | ( | int64_t | texture_id | ) |
Definition at line 850 of file flutter_windows_engine.cc.
|
inline |
Definition at line 151 of file flutter_windows_engine.h.
Referenced by FlutterDesktopMessengerSetCallback().
|
inline |
Definition at line 149 of file flutter_windows_engine.h.
Referenced by FlutterDesktopEngineGetMessenger(), and FlutterDesktopPluginRegistrarGetMessenger().
|
inline |
Definition at line 157 of file flutter_windows_engine.h.
|
protectedvirtual |
Definition at line 978 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::OnDwmCompositionChanged | ( | ) |
Definition at line 953 of file flutter_windows_engine.cc.
Referenced by flutter::WindowsLifecycleManager::WindowProc().
|
protected |
Definition at line 897 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 946 of file flutter_windows_engine.cc.
Referenced by flutter::PlatformHandler::QuitApplication().
void flutter::FlutterWindowsEngine::OnVsync | ( | intptr_t | baton | ) |
void flutter::FlutterWindowsEngine::OnWindowStateEvent | ( | HWND | hwnd, |
WindowStateEvent | event | ||
) |
Definition at line 961 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::OnWindowStateEvent(), and flutter::FlutterWindowsView::~FlutterWindowsView().
|
virtual |
Definition at line 856 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 966 of file flutter_windows_engine.cc.
References message.
Referenced by FlutterDesktopEngineProcessExternalWindowMessage().
bool flutter::FlutterWindowsEngine::RegisterExternalTexture | ( | int64_t | texture_id | ) |
Definition at line 840 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::ReloadSystemFonts | ( | ) |
Definition at line 754 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 939 of file flutter_windows_engine.cc.
bool flutter::FlutterWindowsEngine::Run | ( | ) |
Definition at line 239 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineRun().
bool flutter::FlutterWindowsEngine::Run | ( | std::string_view | entrypoint | ) |
Definition at line 243 of file flutter_windows_engine.cc.
References flutter::FlutterWindowsView::accessibility_bridge(), action, HandlePlatformMessage(), flutter::kImplicitViewId, OnPreEngineRestart(), OnVsync(), user_data, view(), and flutter::WindowsPlatformThreadPrioritySetter().
|
inlinevirtual |
Definition at line 117 of file flutter_windows_engine.h.
Referenced by FlutterDesktopEngineDestroy().
void flutter::FlutterWindowsEngine::ScheduleFrame | ( | ) |
Definition at line 758 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::ForceRedraw().
|
inline |
Definition at line 239 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 691 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 699 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 733 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopMessengerSendResponse().
void flutter::FlutterWindowsEngine::SendPointerEvent | ( | const FlutterPointerEvent & | event | ) |
Definition at line 685 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::SendWindowMetricsEvent | ( | const FlutterWindowMetricsEvent & | event | ) |
Definition at line 678 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::SendInitialBounds().
void flutter::FlutterWindowsEngine::SetNextFrameCallback | ( | fml::closure | callback | ) |
Definition at line 762 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineSetNextFrameCallback().
|
inline |
Definition at line 259 of file flutter_windows_engine.h.
References callback.
void flutter::FlutterWindowsEngine::SetSwitches | ( | const std::vector< std::string > & | switches | ) |
Definition at line 234 of file flutter_windows_engine.cc.
|
virtual |
Definition at line 482 of file flutter_windows_engine.cc.
Referenced by FlutterDesktopEngineDestroy().
|
inline |
Definition at line 155 of file flutter_windows_engine.h.
Referenced by flutter::FlutterWindowsTextureRegistrar::MarkTextureFrameAvailable(), and flutter::FlutterWindowsTextureRegistrar::UnregisterTexture().
|
inline |
Definition at line 185 of file flutter_windows_engine.h.
|
inline |
Definition at line 159 of file flutter_windows_engine.h.
Referenced by FlutterDesktopRegistrarGetTextureRegistrar().
bool flutter::FlutterWindowsEngine::UnregisterExternalTexture | ( | int64_t | texture_id | ) |
Definition at line 845 of file flutter_windows_engine.cc.
void flutter::FlutterWindowsEngine::UpdateAccessibilityFeatures | ( | ) |
Definition at line 916 of file flutter_windows_engine.cc.
Referenced by flutter::testing::TEST_F().
void flutter::FlutterWindowsEngine::UpdateHighContrastMode | ( | ) |
Definition at line 920 of file flutter_windows_engine.cc.
Referenced by flutter::FlutterWindowsView::OnHighContrastChanged().
void flutter::FlutterWindowsEngine::UpdateSemanticsEnabled | ( | bool | enabled | ) |
Definition at line 885 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 656 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 167 of file flutter_windows_engine.h.
Referenced by FlutterDesktopPluginRegistrarRegisterTopLevelWindowProcDelegate(), and FlutterDesktopPluginRegistrarUnregisterTopLevelWindowProcDelegate().
|
inline |
Definition at line 297 of file flutter_windows_engine.h.
Referenced by CreateViewController().
|
friend |
Definition at line 330 of file flutter_windows_engine.h.