Support to deliver autofill hint in fill response 91/209591/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 9 Jul 2019 07:04:46 +0000 (16:04 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 9 Jul 2019 07:04:46 +0000 (16:04 +0900)
Change-Id: I88ec487c890f6560ba70e1119521b7a6801ca6e9
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c
tidl/autofill.tidl
tidl/autofill_service.tidl

index b20029d..64483fb 100644 (file)
@@ -505,6 +505,7 @@ bool fill_response_item_cb(rpc_port_autofill_svc_response_item_h response_items,
     char *id = NULL;
     char *presentation_text = NULL;
     char *value = NULL;
+    int autofill_hint;
 
     rpc_port_autofill_response_item_h res_item = NULL;
 
@@ -521,6 +522,9 @@ bool fill_response_item_cb(rpc_port_autofill_svc_response_item_h response_items,
     rpc_port_autofill_svc_response_item_get_value(response_items, &value);
     rpc_port_autofill_response_item_set_value(res_item, value);
 
+    rpc_port_autofill_svc_response_item_get_autofill_hint(response_items, &autofill_hint);
+    rpc_port_autofill_response_item_set_autofill_hint(res_item, autofill_hint);
+
     rpc_port_autofill_response_group_add_response_items(res_group, res_item);
 
     if (id)
index bfac23d..803697e 100644 (file)
@@ -40,6 +40,7 @@ struct autofill_response_item {
     string id;
     string presentation_text;
     string value;
+    int autofill_hint;
 }
 
 struct autofill_response_group {
index ffe3dc1..06d1aa3 100644 (file)
@@ -42,6 +42,7 @@ struct autofill_svc_response_item {
     string id;
     string presentation_text;
     string value;
+    int autofill_hint;
 }
 
 struct autofill_svc_response_group {