forked from flutter-tizen/embedder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings_channel.h
More file actions
33 lines (24 loc) · 940 Bytes
/
settings_channel.h
File metadata and controls
33 lines (24 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EMBEDDER_SETTINGS_CHANNEL_H_
#define EMBEDDER_SETTINGS_CHANNEL_H_
#include <memory>
#include "flutter/shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h"
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
#include "rapidjson/document.h"
namespace flutter {
class SettingsChannel {
public:
explicit SettingsChannel(BinaryMessenger* messenger);
virtual ~SettingsChannel();
private:
void SendSettingsEvent();
void SetUpLocaleTimeFormat();
void SetUpTextScaleFactor();
std::unique_ptr<BasicMessageChannel<rapidjson::Document>> channel_;
bool locale_time_format_ = false;
float text_scale_factor_ = 1.0;
};
} // namespace flutter
#endif // EMBEDDER_SETTINGS_CHANNEL_H_