5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_TESTING_STUB_FLUTTER_WINDOWS_API_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_TESTING_STUB_FLUTTER_WINDOWS_API_H_
10#include "flutter/shell/platform/windows/flutter_windows_internal.h"
11#include "flutter/shell/platform/windows/public/flutter_windows.h"
64 virtual bool EngineRun(
const char* entry_point) {
return true; }
78 const char* view_type_name,
82 virtual HWND
ViewGetHWND() {
return reinterpret_cast<HWND
>(1); }
86 return reinterpret_cast<IDXGIAdapter*
>(2);
133 std::unique_ptr<StubFlutterWindowsApi> stub_;
StubFlutterWindowsApi * stub()
ScopedStubFlutterWindowsApi(std::unique_ptr< StubFlutterWindowsApi > stub)
~ScopedStubFlutterWindowsApi()
virtual bool ViewControllerHandleTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
virtual void EngineSetNextFrameCallback(VoidCallback callback, void *user_data)
virtual FlutterDesktopEngineRef EngineCreate(const FlutterDesktopEngineProperties &engine_properties)
virtual FlutterDesktopViewRef PluginRegistrarGetViewById(FlutterDesktopViewId view_id)
virtual FlutterDesktopViewControllerRef ViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
virtual bool EngineRun(const char *entry_point)
virtual void EngineRegisterPlatformViewType(const char *view_type_name, FlutterPlatformViewTypeEntry view_type)
virtual void ViewControllerDestroy()
static void SetTestStub(StubFlutterWindowsApi *stub)
static StubFlutterWindowsApi * GetTestStub()
virtual IDXGIAdapter * ViewGetGraphicsAdapter()
virtual void PluginRegistrarUnregisterTopLevelWindowProcDelegate(FlutterDesktopWindowProcCallback delegate)
virtual uint64_t EngineProcessMessages()
virtual FlutterDesktopViewRef PluginRegistrarGetView()
virtual HWND ViewGetHWND()
virtual ~StubFlutterWindowsApi()
virtual bool EngineDestroy()
virtual void PluginRegistrarRegisterTopLevelWindowProcDelegate(FlutterDesktopWindowProcCallback delegate, void *user_data)
virtual void EngineReloadSystemFonts()
virtual bool EngineProcessExternalWindowMessage(FlutterDesktopEngineRef engine, HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, LRESULT *result)
virtual void ViewControllerForceRedraw()
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
struct FlutterDesktopViewController * FlutterDesktopViewControllerRef
bool(* FlutterDesktopWindowProcCallback)(HWND, UINT, WPARAM, LPARAM, void *, LRESULT *result)
int64_t FlutterDesktopViewId
struct FlutterDesktopView * FlutterDesktopViewRef