Files
cutdex/packages/cutdex_native/windows/native_file_drop.h
T
lingjhf 27e77fff39 feat: initial Cutdex application
Add the Flutter video editing application with project management, media
import, timeline editing, preview, AI assistance, diagnostics and settings.

Include shared UI and native host packages, platform runners, application
tests and release tooling.

Provide usage and contribution guides, the MIT license and third-party
notices. Exclude local credentials, build outputs and validation data.
2026-10-05 23:36:23 +08:00

26 lines
710 B
C++

#ifndef FLUTTER_PLUGIN_CUTDEX_NATIVE_FILE_DROP_H_
#define FLUTTER_PLUGIN_CUTDEX_NATIVE_FILE_DROP_H_
#include <flutter/binary_messenger.h>
#include <windows.h>
// Receives Explorer file references and routes them to configured Flutter
// destinations. Must live on the window's STA thread.
class NativeFileDrop {
public:
NativeFileDrop(HWND view, flutter::BinaryMessenger* messenger);
~NativeFileDrop();
NativeFileDrop(const NativeFileDrop&) = delete;
NativeFileDrop& operator=(const NativeFileDrop&) = delete;
private:
class Target;
Target* target_ = nullptr;
HWND view_;
bool ole_initialized_ = false;
bool registered_ = false;
};
#endif // FLUTTER_PLUGIN_CUTDEX_NATIVE_FILE_DROP_H_