5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_SETTINGS_PLUGIN_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_SETTINGS_PLUGIN_H_
12#include "flutter/fml/macros.h"
13#include "flutter/shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h"
14#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
15#include "flutter/shell/platform/windows/event_watcher.h"
16#include "flutter/shell/platform/windows/task_runner.h"
17#include "rapidjson/document.h"
65 std::unique_ptr<BasicMessageChannel<rapidjson::Document>> channel_;
67 HKEY preferred_brightness_reg_hkey_ =
nullptr;
68 HKEY text_scale_factor_reg_hkey_ =
nullptr;
70 std::unique_ptr<EventWatcher> preferred_brightness_changed_watcher_;
71 std::unique_ptr<EventWatcher> text_scale_factor_changed_watcher_;
virtual ~SettingsPlugin()
virtual void StartWatching()
virtual void UpdateHighContrastMode(bool is_high_contrast)
virtual void WatchPreferredBrightnessChanged()
virtual bool GetAlwaysUse24HourFormat()
virtual PlatformBrightness GetPreferredBrightness()
SettingsPlugin(BinaryMessenger *messenger, TaskRunner *task_runner)
virtual void WatchTextScaleFactorChanged()
virtual float GetTextScaleFactor()
virtual void StopWatching()