#ifndef RUNNER_FLUTTER_WINDOW_H_ #define RUNNER_FLUTTER_WINDOW_H_ #include #include #include #include #include #include #include #include #include "win32_window.h" class FlutterWindow : public Win32Window { public: explicit FlutterWindow(const flutter::DartProject& project); virtual ~FlutterWindow(); protected: bool OnCreate() override; void OnDestroy() override; LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept override; private: void EmitScreenshot(); flutter::DartProject project_; std::unique_ptr flutter_controller_; std::unique_ptr> im_channel_; std::unique_ptr> ota_channel_; std::unique_ptr> device_channel_; std::unique_ptr> screenshot_sink_; ULONGLONG last_shot_at_ = 0; }; #endif // RUNNER_FLUTTER_WINDOW_H_