[feat] add mobile privacy controls and Windows secure text input

This commit is contained in:
dijunkun
2026-10-27 02:37:23 +08:00
parent 1e25ec15e1
commit b15925f857
37 changed files with 795 additions and 80 deletions
@@ -12,6 +12,13 @@
#include <remote_action.h>
namespace crossdesk::mobile_controller {
inline std::string PrivacyMessage(int flag, bool block_local_input) {
if (flag < 0 || flag > 2) return {};
RemoteAction action{};
action.type = privacy_command;
action.pc = {static_cast<PrivacyCommandFlag>(flag), block_local_input};
return action.to_json();
}
inline std::string SecureAttentionMessage() {
RemoteAction action{};
action.type = service_command;