此版本包含以下核心更新: 1. 版本号升级至6.6.18,更新全平台配置文件 2. 实现隐私合规改造: - 新增剪贴板隐私守卫,未同意协议前禁止读取剪贴板 - 所有桌面小部件继承隐私感知基类,未同意协议时显示占位提示 - 移除自动剪贴板监控,改为用户主动触发 3. 新增Windows平台深色主题同步功能 4. 补全多语言默认句子翻译 5. 优化安卓快捷方式配置与小部件合规性 6. 修复macOS插件注册问题 7. 新增Windows安装脚本 8. 优化触觉反馈服务初始化时机
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#ifndef RUNNER_FLUTTER_WINDOW_H_
|
|
#define RUNNER_FLUTTER_WINDOW_H_
|
|
|
|
#include <flutter/dart_project.h>
|
|
#include <flutter/flutter_view_controller.h>
|
|
#include <flutter/method_channel.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_;
|
|
|
|
// Windows platform MethodChannel for theme control.
|
|
std::unique_ptr<flutter::MethodChannel<>> platform_channel_;
|
|
};
|
|
|
|
#endif // RUNNER_FLUTTER_WINDOW_H_
|