Mercurial > dwindows
diff win/browser.c @ 2015:c30f4354966e
Win: Added support for dw_html_javascript_run() using Edge (Chromium).
OS/2: Added dw_html_javascript_run() stub for OS/2 so things compile.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 07 Nov 2019 10:12:25 +0000 |
parents | 22e3e829be13 |
children | f696215e6d4e |
line wrap: on
line diff
--- a/win/browser.c Thu Nov 07 08:11:28 2019 +0000 +++ b/win/browser.c Thu Nov 07 10:12:25 2019 +0000 @@ -1421,7 +1421,20 @@ } +/******************************* dw_html_javascript_run() **************************** + * Runs a javascript in the specified browser context. + * + * hwnd = Handle to the window hosting the browser object. + * script = Pointer to nul-terminated javascript string. + * scriptdata = Pointer to user data to be passed to the callback. + * + * RETURNS: 0 if success, or non-zero if an error. + */ +int _dw_html_javascript_run(HWND hwnd, LPCWSTR script, void *scriptdata) +{ + return DW_ERROR_UNKNOWN; +} /******************************* ResizeBrowser() ****************************