8
8
#include < autofill_common.h>
9
9
10
10
#include < functional>
11
- #include < memory>
12
11
13
12
#include " flutter/shell/platform/tizen/logger.h"
14
13
@@ -17,15 +16,14 @@ TizenAutofill::TizenAutofill() {
17
16
}
18
17
19
18
TizenAutofill::~TizenAutofill () {
20
- autofill_destroy (ah_ );
19
+ autofill_destroy (autofill_ );
21
20
}
22
21
23
22
void TizenAutofill::InitailizeAutofill () {
24
- autofill_create (&ah_ );
23
+ autofill_create (&autofill_ );
25
24
26
- int ret;
27
- ret = autofill_connect (
28
- ah_,
25
+ int ret = autofill_connect (
26
+ autofill_,
29
27
[](autofill_h ah, autofill_connection_status_e status, void * user_data) {
30
28
},
31
29
NULL );
@@ -34,7 +32,7 @@ void TizenAutofill::InitailizeAutofill() {
34
32
}
35
33
36
34
autofill_fill_response_set_received_cb (
37
- ah_ ,
35
+ autofill_ ,
38
36
[](autofill_h ah, autofill_fill_response_h fill_response, void * data) {
39
37
int count = 0 ;
40
38
autofill_fill_response_get_group_count (fill_response, &count);
@@ -110,7 +108,7 @@ void TizenAutofill::RequestAutofill(std::vector<std::string> hints,
110
108
}
111
109
}
112
110
113
- int ret = autofill_fill_request (ah_ , view_info);
111
+ int ret = autofill_fill_request (autofill_ , view_info);
114
112
if (ret != AUTOFILL_ERROR_NONE) {
115
113
FT_LOG (Error) << " autofill_fill_request error" ;
116
114
}
@@ -145,9 +143,7 @@ void TizenAutofill::RegisterAutofillItem(std::string view_id,
145
143
free (app_id);
146
144
}
147
145
148
- int ret;
149
-
150
- ret = autofill_commit (ah_, svi_h);
146
+ int ret = autofill_commit (autofill_, svi_h);
151
147
if (ret != AUTOFILL_ERROR_NONE) {
152
148
FT_LOG (Error) << " autofill_commit error" ;
153
149
}
0 commit comments