summaryrefslogtreecommitdiff
path: root/lisp/obsolete
diff options
context:
space:
mode:
authorSungbin Jo <pcr910303@icloud.com>2019-06-05 12:18:23 +0900
committerAlan Third <alan@idiocy.org>2019-06-23 22:43:56 +0100
commit4f5c264a412c4187d86f5e43218d6ffb7de1bf76 (patch)
treed8b2db17f937f1e6408d65164b141b6ff4981388 /lisp/obsolete
parentd2bbea23fa02c09a22e654f4127c234606d64fea (diff)
downloademacs-4f5c264a412c4187d86f5e43218d6ffb7de1bf76.tar.gz
Add xwidget webkit support for macOS Cocoa
* configure.ac: Allow xwidgets to build under Cocoa. * lisp/xwidget.el (xwidget-webkit-split-below): (xwidget-webkit-split-right): New functions. (xwidget-webkit-mode-map): Add new keybindings. (xwidget-webkit-scroll-up-line): (xwidget-webkit-scroll-down-line): (xwidget-webkit-scroll-up): (xwidget-webkit-scroll-down): Add ability to scroll specific amounts. (xwidget-webkit-scroll-line-height): New variable. (xwidget-webkit-scroll-bottom): Change clientHeight to scrollHeight. (xwidget-event-handler): Remove message. (xwidget-webkit-scroll-backward): Modify some window handling. (xwidget-webkit-mode): Add new functions. (xwidget-webkit-download-dir): (xwidget-webkit-save-as-file): Add support for downloading files. (xwidget-webkit-bookmark-jump-new-session): New function. (xwidget-webkit-bookmark-make-record): Modify bookmark loading. (isearch-mode-hook): (xwidget-webkit-search-js): (xwidget-webkit-isearch-last-length): (xwidget-webkit-search-fun-function): Add search within xwidget. (xwidget-webkit-insert-string): Use lists instead of vectors. (xwidget-window-inside-pixel-width): (xwidget-window-inside-pixel-height): New functions (xwidget-webkit-adjust-size-to-window): Use new functions. (xwidget-webkit-new-session): Modify session default. (xwidget-webkit-show-element): (xwidget-webkit-end-edit-textarea): (xwidget-webkit-back): Use functions instead of explicit JS scripts. (xwidget-webkit-current-url-message-kill): (xwidget-webkit-forward): New function. (xwidget-webkit-copy-selection-as-kill): Remove unneeded lambda. * nextstep/templates/Info.plist.in: Modify Emacs's system permissions. * src/Makefile.in (SOME_MACHINE_OBJECTS): Add nsxwidget.o. * src/emacs.c (main): Move call to syms_of_xwidget. * src/nsterm.m (ns_note_mouse_movement): Handle the dragging case differently. (ns_draw_glyph_string): Handle xwidget drawing. ([EmacsView mouseMoved:]): Handle dragging case. * src/nsxwidget.h: * src/nsxwidget.m: New files. * src/xwidget.c (xwidget_init_view): (Fxwidget_webkit_zoom): (Fxwidget_resize): (Fxwidget_size_request): (Fdelete_xwidget_view): (kill_buffer_xwidgets): (Fmake_xwidget): Separate out GTK and NS code. (xwidget_hide_view): Replace printf with message. (xwidget_is_web_view): (Fxwidget_webkit_uri): (Fxwidget_webkit_title): (Fxwidget_webkit_goto_history): (store_xwidget_response_callback_event): New function. (x_draw_xwidget_glyph_string): NS xwidgets only support one view. Separate out GTK and NS code. (WEBKIT_FN_INIT): Use new function. (Fxwidget_webkit_execute_script): Something to do with detecting a function. (syms_of_xwidget): Define new functions. (xwidget_end_redisplay): Handle NS xwidget peculiarities. * src/xwidget.h: define new functions and add NS includes.
Diffstat (limited to 'lisp/obsolete')
0 files changed, 0 insertions, 0 deletions