diff dw.h @ 2006:6f1adc77de02

GTK: Added DW_SIGNAL_HTML_CHANGED and DW_SIGNAL_HTML_RESULT. Added dw_html_javascript_run(). Full support on GTK3 using WebKit2 and partial support for WebKit1. Will port to GTK2 when WebKit1 support is complete. Mac and Windows versions coming soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 06 Nov 2019 13:09:31 +0000
parents a17cc1958369
children 89d62197124b
line wrap: on
line diff
--- a/dw.h	Wed Nov 06 08:48:49 2019 +0000
+++ b/dw.h	Wed Nov 06 13:09:31 2019 +0000
@@ -56,6 +56,8 @@
 #define DW_SIGNAL_SWITCH_PAGE    "switch-page"
 #define DW_SIGNAL_COLUMN_CLICK   "click-column"
 #define DW_SIGNAL_TREE_EXPAND    "tree-expand"
+#define DW_SIGNAL_HTML_CHANGED   "html-changed"
+#define DW_SIGNAL_HTML_RESULT    "html-result"
 
 /* status of menu items */
 #define DW_MIS_ENABLED           1
@@ -1443,6 +1445,12 @@
 #define DW_HTML_STOP       5
 #define DW_HTML_PRINT      6
 
+/* Embedded HTML notifcations */
+#define DW_HTML_CHANGE_STARTED  1
+#define DW_HTML_CHANGE_REDIRECT 2
+#define DW_HTML_CHANGE_LOADING  3
+#define DW_HTML_CHANGE_COMPLETE 4
+
 /* Drawing flags  */
 #define DW_DRAW_DEFAULT    0
 #define DW_DRAW_FILL       1
@@ -1809,6 +1817,7 @@
 void API dw_html_action(HWND hwnd, int action);
 int API dw_html_raw(HWND hwnd, char *string);
 int API dw_html_url(HWND hwnd, char *url);
+int API dw_html_javascript_run(HWND hwnd, char *script, void *scriptdata);
 HWND API dw_html_new(unsigned long id);
 char * API dw_clipboard_get_text(void);
 void API dw_clipboard_set_text( char *str, int len );