Skip to content

Commit 596a947

Browse files
committed
Organize includes and clean up
1 parent fe62c67 commit 596a947

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

shell/platform/tizen/channels/app_control.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// found in the LICENSE file.
44

55
#include "app_control.h"
6-
#include "flutter/shell/platform/common/client_wrapper/include/flutter/event_stream_handler_functions.h"
6+
77
#include "flutter/shell/platform/tizen/channels/app_control_channel.h"
88

99
namespace flutter {
@@ -109,8 +109,8 @@ AppControlResult AppControl::SetExtraData(const EncodableMap& map) {
109109
return AppControlResult();
110110
}
111111

112-
void AppControl::SetManager(AppControlChannel* m) {
113-
manager_ = m;
112+
void AppControl::SetManager(AppControlChannel* manager) {
113+
manager_ = manager;
114114
}
115115

116116
AppControlChannel* AppControl::GetManager() {

shell/platform/tizen/channels/app_control.h

-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
#define EMBEDDER_APP_CONTROL_H_
77

88
#include <app.h>
9-
#include <queue>
10-
#include <unordered_map>
119

12-
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
1310
#include "flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h"
1411
#include "flutter/shell/platform/common/client_wrapper/include/flutter/event_channel.h"
15-
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
16-
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
1712
#include "flutter/shell/platform/tizen/logger.h"
1813

1914
namespace flutter {

shell/platform/tizen/channels/app_control_channel.cc

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#include <app.h>
6-
7-
#include "app_control.h"
85
#include "app_control_channel.h"
96

107
#include "flutter/shell/platform/common/client_wrapper/include/flutter/event_stream_handler_functions.h"
8+
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
119

1210
namespace flutter {
1311

14-
static constexpr char kChannelName[] = "tizen/internal/app_control_method";
15-
static constexpr char kEventChannelName[] = "tizen/internal/app_control_event";
16-
static constexpr char kReplyChannelName[] = "tizen/internal/app_control_reply";
12+
namespace {
13+
14+
constexpr char kChannelName[] = "tizen/internal/app_control_method";
15+
constexpr char kEventChannelName[] = "tizen/internal/app_control_event";
16+
constexpr char kReplyChannelName[] = "tizen/internal/app_control_reply";
17+
18+
} // namespace
1719

1820
AppControlChannel::AppControlChannel(BinaryMessenger* messenger) {
1921
method_channel_ = std::make_unique<MethodChannel<EncodableValue>>(

shell/platform/tizen/channels/app_control_channel.h

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,17 @@
55
#ifndef EMBEDDER_APP_CONTROL_CHANNEL_H_
66
#define EMBEDDER_APP_CONTROL_CHANNEL_H_
77

8+
#include <memory>
89
#include <queue>
910
#include <unordered_map>
1011

1112
#include "flutter/shell/platform/common/client_wrapper/include/flutter/binary_messenger.h"
1213
#include "flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h"
1314
#include "flutter/shell/platform/common/client_wrapper/include/flutter/event_channel.h"
1415
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_channel.h"
15-
#include "flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
16+
#include "flutter/shell/platform/tizen/channels/app_control.h"
1617
#include "flutter/shell/platform/tizen/logger.h"
1718

18-
#include "app_control.h"
19-
2019
namespace flutter {
2120

2221
class AppControlChannel {
@@ -33,13 +32,11 @@ class AppControlChannel {
3332
private:
3433
void HandleMethodCall(const MethodCall<EncodableValue>& method_call,
3534
std::unique_ptr<MethodResult<EncodableValue>> result);
36-
void RegisterEventHandler(
37-
std::unique_ptr<flutter::EventSink<EncodableValue>> events);
35+
void RegisterEventHandler(std::unique_ptr<EventSink<EncodableValue>> events);
3836
void UnregisterEventHandler();
3937
void SendAlreadyQueuedEvents();
4038

41-
void RegisterReplyHandler(
42-
std::unique_ptr<flutter::EventSink<EncodableValue>> events);
39+
void RegisterReplyHandler(std::unique_ptr<EventSink<EncodableValue>> events);
4340
void UnregisterReplyHandler();
4441

4542
template <typename T>

0 commit comments

Comments
 (0)