aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.h
diff options
context:
space:
mode:
authorPo Lu2023-03-08 15:04:49 +0800
committerPo Lu2023-03-08 15:04:49 +0800
commitbb55528c7b58c5f50336ed3f2ff9759559d78680 (patch)
tree6a4422afb19dc4ac9644d62b12d2a8aaf145deb3 /src/androidterm.h
parentfdff5442a59fd2387c23e2be2658dafa39466891 (diff)
downloademacs-bb55528c7b58c5f50336ed3f2ff9759559d78680.tar.gz
emacs-bb55528c7b58c5f50336ed3f2ff9759559d78680.zip
Update Android port
* doc/emacs/android.texi (Android File System): Document what `temp~unlinked' means in the temporary files directory. * java/org/gnu/emacs/EmacsService.java (updateExtractedText): New function. * java/org/gnu/emacs/EmacsView.java (onCreateInputConnection): Ask the input method nicely to not display the extracted text UI. * src/android.c (struct android_emacs_service): New method `updateExtractedText'. (android_hack_asset_fd_fallback): Improve naming convention. Fix typo. (android_init_emacs_service): Add new method. (android_update_extracted_text): New function. (android_open_asset): Fix typo. * src/androidgui.h: Update prototypes. * src/androidterm.c (struct android_get_extracted_text_context): New field `flags'. (android_get_extracted_text): Set flags on the frame's output data. (android_build_extracted_text): New function. (getExtractedText): Move out class structures. (android_update_selection): Send updates to extracted text if the input method asked for them. (android_reset_conversion): Clear extracted text flags. * src/androidterm.h (struct android_output): New fields for storing extracted text data.
Diffstat (limited to 'src/androidterm.h')
-rw-r--r--src/androidterm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/androidterm.h b/src/androidterm.h
index ac845187a66..9bd11bb7853 100644
--- a/src/androidterm.h
+++ b/src/androidterm.h
@@ -241,6 +241,16 @@ struct android_output
241 /* List of all tools (either styluses or fingers) pressed onto the 241 /* List of all tools (either styluses or fingers) pressed onto the
242 frame. */ 242 frame. */
243 struct android_touch_point *touch_points; 243 struct android_touch_point *touch_points;
244
245 /* Flags associated with the last request to obtain ``extracted
246 text''. */
247 int extracted_text_flags;
248
249 /* Token asssociated with that request. */
250 int extracted_text_token;
251
252 /* The number of characters of extracted text wanted by the IM. */
253 int extracted_text_hint;
244}; 254};
245 255
246enum 256enum