- Rename mobile app directory to client throughout the project - Restructure client app code into feature-based organization - Move code to src/features/workspaces/domain/presentation - Move services to src/integrations/ (mattermost, workspace, proto_socket) - Add app bootstrap and main entry point - Add push notification integration (Mattermost push client/host/plugin) - Add proto socket integration for real-time communication - Add integration tests for push and socket components - Archive old milestone: client-integration-standardization.md - Add new workflow core milestone: roadmap-driven-agent-ops-automation.md - Update agent-ops rules (project, core, mobile, contracts, workspace-ops) - Update roadmap files (ROADMAP.md, current.md, phase PHASE.md files) - Update bin scripts (build, dev, lint, test) - Add test environments documentation - Update contracts notes for Flutter Core API
33 lines
928 B
C++
33 lines
928 B
C++
#ifndef RUNNER_FLUTTER_WINDOW_H_
|
|
#define RUNNER_FLUTTER_WINDOW_H_
|
|
|
|
#include <flutter/dart_project.h>
|
|
#include <flutter/flutter_view_controller.h>
|
|
|
|
#include <memory>
|
|
|
|
#include "win32_window.h"
|
|
|
|
// A window that does nothing but host a Flutter view.
|
|
class FlutterWindow : public Win32Window {
|
|
public:
|
|
// Creates a new FlutterWindow hosting a Flutter view running |project|.
|
|
explicit FlutterWindow(const flutter::DartProject& project);
|
|
virtual ~FlutterWindow();
|
|
|
|
protected:
|
|
// Win32Window:
|
|
bool OnCreate() override;
|
|
void OnDestroy() override;
|
|
LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
|
|
LPARAM const lparam) noexcept override;
|
|
|
|
private:
|
|
// The project to run.
|
|
flutter::DartProject project_;
|
|
|
|
// The Flutter instance hosted by this window.
|
|
std::unique_ptr<flutter::FlutterViewController> flutter_controller_;
|
|
};
|
|
|
|
#endif // RUNNER_FLUTTER_WINDOW_H_
|