8
8
#include " flutter/shell/platform/common/client_wrapper/include/flutter/standard_message_codec.h"
9
9
#include " flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
10
10
#include " flutter/shell/platform/common/json_method_codec.h"
11
- #include " flutter/shell/platform/tizen/channels/text_input_channel.h"
12
11
#include " flutter/shell/platform/tizen/flutter_tizen_engine.h"
13
12
#include " flutter/shell/platform/tizen/public/flutter_platform_view.h"
14
13
#include " flutter/shell/platform/tizen/tizen_log.h"
@@ -33,10 +32,8 @@ bool GetValueFromEncodableMap(const EncodableValue& arguments,
33
32
return false ;
34
33
}
35
34
36
- PlatformViewChannel::PlatformViewChannel (BinaryMessenger* messenger,
37
- FlutterTizenEngine* engine)
38
- : engine_(engine),
39
- channel_ (std::make_unique<MethodChannel<EncodableValue>>(
35
+ PlatformViewChannel::PlatformViewChannel (BinaryMessenger* messenger)
36
+ : channel_(std::make_unique<MethodChannel<EncodableValue>>(
40
37
messenger,
41
38
kChannelName ,
42
39
&StandardMethodCodec::GetInstance ())) {
@@ -95,23 +92,6 @@ void PlatformViewChannel::SendKeyEvent(Ecore_Event_Key* key, bool is_down) {
95
92
}
96
93
}
97
94
98
- void PlatformViewChannel::DispatchCompositionUpdateEvent (
99
- const std::string& key) {
100
- auto instances = ViewInstances ();
101
- auto it = instances.find (CurrentFocusedViewId ());
102
- if (it != instances.end ()) {
103
- it->second ->DispatchCompositionUpdateEvent (key.c_str (), key.size ());
104
- }
105
- }
106
-
107
- void PlatformViewChannel::DispatchCompositionEndEvent (const std::string& key) {
108
- auto instances = ViewInstances ();
109
- auto it = instances.find (CurrentFocusedViewId ());
110
- if (it != instances.end ()) {
111
- it->second ->DispatchCompositionEndEvent (key.c_str (), key.size ());
112
- }
113
- }
114
-
115
95
int PlatformViewChannel::CurrentFocusedViewId () {
116
96
for (auto it = view_instances_.begin (); it != view_instances_.end (); it++) {
117
97
if (it->second ->IsFocused ()) {
@@ -162,12 +142,6 @@ void PlatformViewChannel::HandleMethodCall(
162
142
if (view_instance) {
163
143
view_instances_.insert (
164
144
std::pair<int , PlatformView*>(view_id, view_instance));
165
-
166
- if (engine_ && engine_->text_input_channel ) {
167
- Ecore_IMF_Context* context =
168
- engine_->text_input_channel ->GetImfContext ();
169
- view_instance->SetSoftwareKeyboardContext (context);
170
- }
171
145
result->Success (EncodableValue (view_instance->GetTextureId ()));
172
146
} else {
173
147
result->Error (" Can't create a webview instance!!" );
@@ -264,5 +238,4 @@ void PlatformViewChannel::HandleMethodCall(
264
238
}
265
239
}
266
240
}
267
-
268
241
} // namespace flutter
0 commit comments