5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_WINDOWS_PROC_TABLE_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_WINDOWS_PROC_TABLE_H_
11 #include "flutter/fml/macros.h"
12 #include "flutter/fml/native_library.h"
36 POINTER_INPUT_TYPE* pointer_type)
const;
74 virtual HCURSOR
LoadCursor(HINSTANCE instance, LPCWSTR cursor_name)
const;
80 virtual HCURSOR
SetCursor(HCURSOR cursor)
const;
103 const MARGINS* pMarInset)
const;
113 DWORD cbAttribute)
const;
127 using GetPointerType_ = BOOL __stdcall(UINT32 pointerId,
128 POINTER_INPUT_TYPE* pointerType);
129 using EnableNonClientDpiScaling_ = BOOL __stdcall(HWND hwnd);
130 using SetWindowCompositionAttribute_ =
132 using AdjustWindowRectExForDpi_ = BOOL __stdcall(LPRECT lpRect,
139 fml::RefPtr<fml::NativeLibrary> user32_;
141 std::optional<GetPointerType_*> get_pointer_type_;
142 std::optional<EnableNonClientDpiScaling_*> enable_non_client_dpi_scaling_;
143 std::optional<SetWindowCompositionAttribute_*>
144 set_window_composition_attribute_;
145 std::optional<AdjustWindowRectExForDpi_*> adjust_window_rect_ext_for_dpi_;
virtual HRESULT DwmFlush() const
virtual BOOL GetPointerType(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type) const
virtual HCURSOR LoadCursor(HINSTANCE instance, LPCWSTR cursor_name) const
virtual HCURSOR SetCursor(HCURSOR cursor) const
virtual bool GetHighContrastEnabled() const
virtual ~WindowsProcTable()
virtual BOOL AdjustWindowRectExForDpi(LPRECT lpRect, DWORD dwStyle, BOOL bMenu, DWORD dwExStyle, UINT dpi) const
virtual BOOL EnableNonClientDpiScaling(HWND hwnd) const
virtual HRESULT DwmExtendFrameIntoClientArea(HWND hwnd, const MARGINS *pMarInset) const
virtual bool DwmIsCompositionEnabled() const
virtual HRESULT DwmSetWindowAttribute(HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute) const
virtual LRESULT GetThreadPreferredUILanguages(DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const
virtual BOOL SetWindowCompositionAttribute(HWND hwnd, WINDOWCOMPOSITIONATTRIBDATA *data) const
WINDOWCOMPOSITIONATTRIB Attrib