88#include " flutter/shell/platform/common/client_wrapper/include/flutter/standard_message_codec.h"
99#include " flutter/shell/platform/common/client_wrapper/include/flutter/standard_method_codec.h"
1010#include " flutter/shell/platform/common/json_method_codec.h"
11- #include " flutter/shell/platform/tizen/channels/text_input_channel.h"
1211#include " flutter/shell/platform/tizen/flutter_tizen_engine.h"
1312#include " flutter/shell/platform/tizen/public/flutter_platform_view.h"
1413#include " flutter/shell/platform/tizen/tizen_log.h"
@@ -33,10 +32,8 @@ bool GetValueFromEncodableMap(const EncodableValue& arguments,
3332 return false ;
3433}
3534
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>>(
4037 messenger,
4138 kChannelName ,
4239 &StandardMethodCodec::GetInstance ())) {
@@ -95,23 +92,6 @@ void PlatformViewChannel::SendKeyEvent(Ecore_Event_Key* key, bool is_down) {
9592 }
9693}
9794
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-
11595int PlatformViewChannel::CurrentFocusedViewId () {
11696 for (auto it = view_instances_.begin (); it != view_instances_.end (); it++) {
11797 if (it->second ->IsFocused ()) {
@@ -162,12 +142,6 @@ void PlatformViewChannel::HandleMethodCall(
162142 if (view_instance) {
163143 view_instances_.insert (
164144 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- }
171145 result->Success (EncodableValue (view_instance->GetTextureId ()));
172146 } else {
173147 result->Error (" Can't create a webview instance!!" );
@@ -264,5 +238,4 @@ void PlatformViewChannel::HandleMethodCall(
264238 }
265239 }
266240}
267-
268241} // namespace flutter
0 commit comments