Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
flutter::testing::StubFlutterWindowsApi Class Reference

#include <stub_flutter_windows_api.h>

Public Member Functions

virtual ~StubFlutterWindowsApi ()
 
virtual FlutterDesktopViewControllerRef ViewControllerCreate (int width, int height, FlutterDesktopEngineRef engine)
 
virtual void ViewControllerDestroy ()
 
virtual void ViewControllerForceRedraw ()
 
virtual bool ViewControllerHandleTopLevelWindowProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
 
virtual FlutterDesktopEngineRef EngineCreate (const FlutterDesktopEngineProperties &engine_properties)
 
virtual bool EngineDestroy ()
 
virtual bool EngineRun (const char *entry_point)
 
virtual uint64_t EngineProcessMessages ()
 
virtual void EngineSetNextFrameCallback (VoidCallback callback, void *user_data)
 
virtual void EngineReloadSystemFonts ()
 
virtual void EngineRegisterPlatformViewType (const char *view_type_name, FlutterPlatformViewTypeEntry view_type)
 
virtual HWND ViewGetHWND ()
 
virtual IDXGIAdapter * ViewGetGraphicsAdapter ()
 
virtual FlutterDesktopViewRef PluginRegistrarGetView ()
 
virtual FlutterDesktopViewRef PluginRegistrarGetViewById (FlutterDesktopViewId view_id)
 
virtual void PluginRegistrarRegisterTopLevelWindowProcDelegate (FlutterDesktopWindowProcCallback delegate, void *user_data)
 
virtual void PluginRegistrarUnregisterTopLevelWindowProcDelegate (FlutterDesktopWindowProcCallback delegate)
 
virtual bool EngineProcessExternalWindowMessage (FlutterDesktopEngineRef engine, HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
 

Static Public Member Functions

static void SetTestStub (StubFlutterWindowsApi *stub)
 
static StubFlutterWindowsApiGetTestStub ()
 

Detailed Description

Definition at line 22 of file stub_flutter_windows_api.h.

Constructor & Destructor Documentation

◆ ~StubFlutterWindowsApi()

virtual flutter::testing::StubFlutterWindowsApi::~StubFlutterWindowsApi ( )
inlinevirtual

Definition at line 31 of file stub_flutter_windows_api.h.

31{}

Member Function Documentation

◆ EngineCreate()

virtual FlutterDesktopEngineRef flutter::testing::StubFlutterWindowsApi::EngineCreate ( const FlutterDesktopEngineProperties engine_properties)
inlinevirtual

Definition at line 55 of file stub_flutter_windows_api.h.

56 {
57 return nullptr;
58 }

◆ EngineDestroy()

virtual bool flutter::testing::StubFlutterWindowsApi::EngineDestroy ( )
inlinevirtual

Definition at line 61 of file stub_flutter_windows_api.h.

61{ return true; }

◆ EngineProcessExternalWindowMessage()

virtual bool flutter::testing::StubFlutterWindowsApi::EngineProcessExternalWindowMessage ( FlutterDesktopEngineRef  engine,
HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam,
LRESULT result 
)
inlinevirtual

Definition at line 109 of file stub_flutter_windows_api.h.

115 {
116 return false;
117 }

◆ EngineProcessMessages()

virtual uint64_t flutter::testing::StubFlutterWindowsApi::EngineProcessMessages ( )
inlinevirtual

Definition at line 67 of file stub_flutter_windows_api.h.

67{ return 0; }

◆ EngineRegisterPlatformViewType()

virtual void flutter::testing::StubFlutterWindowsApi::EngineRegisterPlatformViewType ( const char *  view_type_name,
FlutterPlatformViewTypeEntry  view_type 
)
inlinevirtual

Definition at line 77 of file stub_flutter_windows_api.h.

79 {}

◆ EngineReloadSystemFonts()

virtual void flutter::testing::StubFlutterWindowsApi::EngineReloadSystemFonts ( )
inlinevirtual

Definition at line 74 of file stub_flutter_windows_api.h.

74{}

◆ EngineRun()

virtual bool flutter::testing::StubFlutterWindowsApi::EngineRun ( const char *  entry_point)
inlinevirtual

Definition at line 64 of file stub_flutter_windows_api.h.

64{ return true; }

◆ EngineSetNextFrameCallback()

virtual void flutter::testing::StubFlutterWindowsApi::EngineSetNextFrameCallback ( VoidCallback  callback,
void *  user_data 
)
inlinevirtual

Definition at line 70 of file stub_flutter_windows_api.h.

71 {}

◆ GetTestStub()

StubFlutterWindowsApi * flutter::testing::StubFlutterWindowsApi::GetTestStub ( )
static

Definition at line 18 of file stub_flutter_windows_api.cc.

18 {
20}
static flutter::testing::StubFlutterWindowsApi * s_stub_implementation

◆ PluginRegistrarGetView()

virtual FlutterDesktopViewRef flutter::testing::StubFlutterWindowsApi::PluginRegistrarGetView ( )
inlinevirtual

Definition at line 90 of file stub_flutter_windows_api.h.

90{ return nullptr; }

◆ PluginRegistrarGetViewById()

virtual FlutterDesktopViewRef flutter::testing::StubFlutterWindowsApi::PluginRegistrarGetViewById ( FlutterDesktopViewId  view_id)
inlinevirtual

Definition at line 93 of file stub_flutter_windows_api.h.

94 {
95 return nullptr;
96 }

◆ PluginRegistrarRegisterTopLevelWindowProcDelegate()

virtual void flutter::testing::StubFlutterWindowsApi::PluginRegistrarRegisterTopLevelWindowProcDelegate ( FlutterDesktopWindowProcCallback  delegate,
void *  user_data 
)
inlinevirtual

Definition at line 99 of file stub_flutter_windows_api.h.

101 {}

◆ PluginRegistrarUnregisterTopLevelWindowProcDelegate()

virtual void flutter::testing::StubFlutterWindowsApi::PluginRegistrarUnregisterTopLevelWindowProcDelegate ( FlutterDesktopWindowProcCallback  delegate)
inlinevirtual

Definition at line 105 of file stub_flutter_windows_api.h.

106 {}

◆ SetTestStub()

void flutter::testing::StubFlutterWindowsApi::SetTestStub ( StubFlutterWindowsApi stub)
static

Definition at line 13 of file stub_flutter_windows_api.cc.

13 {
15}

◆ ViewControllerCreate()

virtual FlutterDesktopViewControllerRef flutter::testing::StubFlutterWindowsApi::ViewControllerCreate ( int  width,
int  height,
FlutterDesktopEngineRef  engine 
)
inlinevirtual

Definition at line 35 of file stub_flutter_windows_api.h.

35 {
36 return nullptr;
37 }

◆ ViewControllerDestroy()

virtual void flutter::testing::StubFlutterWindowsApi::ViewControllerDestroy ( )
inlinevirtual

Definition at line 40 of file stub_flutter_windows_api.h.

40{}

◆ ViewControllerForceRedraw()

virtual void flutter::testing::StubFlutterWindowsApi::ViewControllerForceRedraw ( )
inlinevirtual

Definition at line 43 of file stub_flutter_windows_api.h.

43{}

◆ ViewControllerHandleTopLevelWindowProc()

virtual bool flutter::testing::StubFlutterWindowsApi::ViewControllerHandleTopLevelWindowProc ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam,
LRESULT result 
)
inlinevirtual

Definition at line 46 of file stub_flutter_windows_api.h.

50 {
51 return false;
52 }

◆ ViewGetGraphicsAdapter()

virtual IDXGIAdapter * flutter::testing::StubFlutterWindowsApi::ViewGetGraphicsAdapter ( )
inlinevirtual

Definition at line 85 of file stub_flutter_windows_api.h.

85 {
86 return reinterpret_cast<IDXGIAdapter*>(2);
87 }

◆ ViewGetHWND()

virtual HWND flutter::testing::StubFlutterWindowsApi::ViewGetHWND ( )
inlinevirtual

Definition at line 82 of file stub_flutter_windows_api.h.

82{ return reinterpret_cast<HWND>(1); }

The documentation for this class was generated from the following files: