7
7
#include " flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_message_codec.h"
8
8
#include " flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_method_codec.h"
9
9
#include " flutter/shell/platform/common/cpp/json_method_codec.h"
10
- #include " flutter/shell/platform/tizen/logger.h"
11
10
#include " flutter/shell/platform/tizen/public/flutter_platform_view.h"
11
+ #include " flutter/shell/platform/tizen/tizen_log.h"
12
12
13
13
static constexpr char kChannelName [] = " flutter/platform_views" ;
14
14
@@ -122,7 +122,7 @@ void PlatformViewChannel::HandleMethodCall(
122
122
double width = ExtractDoubleFromMap (arguments, " width" );
123
123
double height = ExtractDoubleFromMap (arguments, " height" );
124
124
125
- LoggerD (
125
+ FT_LOGD (
126
126
" PlatformViewChannel create viewType: %s id: %d width: %f height: %f " ,
127
127
viewType.c_str (), viewId, width, height);
128
128
@@ -152,19 +152,19 @@ void PlatformViewChannel::HandleMethodCall(
152
152
153
153
result->Success (flutter::EncodableValue (viewInstance->GetTextureId ()));
154
154
} else {
155
- LoggerE (" can't find view type = %s" , viewType.c_str ());
155
+ FT_LOGE (" can't find view type = %s" , viewType.c_str ());
156
156
result->Error (" 0" , " can't find view type" );
157
157
}
158
158
} else {
159
159
int viewId = ExtractIntFromMap (arguments, " id" );
160
160
auto it = view_instances_.find (viewId);
161
161
if (viewId >= 0 && it != view_instances_.end ()) {
162
162
if (method == " dispose" ) {
163
- LoggerD (" PlatformViewChannel dispose" );
163
+ FT_LOGD (" PlatformViewChannel dispose" );
164
164
it->second ->Dispose ();
165
165
result->Success ();
166
166
} else if (method == " resize" ) {
167
- LoggerD (" PlatformViewChannel resize" );
167
+ FT_LOGD (" PlatformViewChannel resize" );
168
168
double width = ExtractDoubleFromMap (arguments, " width" );
169
169
double height = ExtractDoubleFromMap (arguments, " height" );
170
170
it->second ->Resize (width, height);
@@ -188,18 +188,18 @@ void PlatformViewChannel::HandleMethodCall(
188
188
it->second ->Touch (type, button, x, y, dx, dy);
189
189
result->Success ();
190
190
} else if (method == " setDirection" ) {
191
- LoggerD (" PlatformViewChannel setDirection" );
191
+ FT_LOGD (" PlatformViewChannel setDirection" );
192
192
result->NotImplemented ();
193
193
} else if (method == " clearFocus" ) {
194
- LoggerD (" PlatformViewChannel clearFocus" );
194
+ FT_LOGD (" PlatformViewChannel clearFocus" );
195
195
it->second ->ClearFocus ();
196
196
result->NotImplemented ();
197
197
} else {
198
- LoggerD (" Unimplemented method: %s" , method.c_str ());
198
+ FT_LOGD (" Unimplemented method: %s" , method.c_str ());
199
199
result->NotImplemented ();
200
200
}
201
201
} else {
202
- LoggerE (" can't find view id" );
202
+ FT_LOGE (" can't find view id" );
203
203
result->Error (" 0" , " can't find view id" );
204
204
}
205
205
}
0 commit comments