File tree 3 files changed +10
-8
lines changed
flutter/shell/platform/tizen
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ class TextInputChannel {
83
83
84
84
std::string autofill_id_;
85
85
86
+ // Hints for request autofill. See availabel options:
87
+ // https://api.flutter.dev/flutter/services/AutofillHints-class.html
86
88
std::vector<std::string> autofill_hints_;
87
89
};
88
90
Original file line number Diff line number Diff line change @@ -46,11 +46,7 @@ class TizenAutofill {
46
46
47
47
void OnCommit (std::string str) { commit_callback_ (str); }
48
48
49
- void CallPopupCallback () {
50
- popup_callback_ ();
51
- // response_items_.clear();
52
- // TODO : reponse_item_ must be cleared when popup is disappeared
53
- }
49
+ void CallPopupCallback () { popup_callback_ (); }
54
50
55
51
const std::vector<std::unique_ptr<AutofillItem>>& GetAutofillItems () {
56
52
return response_items_;
Original file line number Diff line number Diff line change @@ -83,10 +83,14 @@ class TizenInputMethodContext {
83
83
void SetOnPreeditEnd (OnPreeditEnd callback) { on_preedit_end_ = callback; }
84
84
85
85
void SetOnPopupAutofillContext (OnPopupAutofillContext callback) {
86
- popup_autofill_context_ = callback;
86
+ on_popup_autofill_context_ = callback;
87
87
}
88
88
89
- void PopupAutofillItems () { popup_autofill_context_ (); }
89
+ void PopupAutofillItems () {
90
+ if (on_popup_autofill_context_) {
91
+ on_popup_autofill_context_ ();
92
+ }
93
+ }
90
94
91
95
private:
92
96
void RegisterEventCallbacks ();
@@ -103,7 +107,7 @@ class TizenInputMethodContext {
103
107
OnPreeditChanged on_preedit_changed_;
104
108
OnPreeditStart on_preedit_start_;
105
109
OnPreeditEnd on_preedit_end_;
106
- OnPopupAutofillContext popup_autofill_context_ ;
110
+ OnPopupAutofillContext on_popup_autofill_context_ ;
107
111
std::unordered_map<Ecore_IMF_Callback_Type, Ecore_IMF_Event_Cb>
108
112
event_callbacks_;
109
113
};
You can’t perform that action at this time.
0 commit comments