Mercurial > dwindows
diff mac/dw.m @ 2975:ae4d6856b983
iOS: Support for dw_html_javascript_add() and DW_SIGNAL_HTML_MESSAGE.
Add DW_FEATURE_HTML_MESSAGE feature test and display in dwtest(oo).
Mac: Make sure code is in WK_API_ENABLED tests so old MacOS versions are
still supported.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 24 Mar 2023 17:15:59 +0000 |
parents | fffb4904c90b |
children | d84182f0054e |
line wrap: on
line diff
--- a/mac/dw.m Fri Mar 24 11:39:24 2023 +0000 +++ b/mac/dw.m Fri Mar 24 17:15:59 2023 +0000 @@ -888,6 +888,7 @@ return htmlchangedfunc(handler->window, DW_POINTER_TO_INT(params[0]), (char *)[uri UTF8String], handler->data); } +#if WK_API_ENABLED /* HTML message event */ case _DW_EVENT_HTML_MESSAGE: { @@ -897,6 +898,7 @@ return htmlmessagefunc(handler->window, (char *)[[message name] UTF8String], [[message body] isKindOfClass:[NSString class]] ? (char *)[[message body] UTF8String] : NULL, handler->data); } +#endif } } return -1; @@ -13467,6 +13469,9 @@ #endif case DW_FEATURE_HTML: case DW_FEATURE_HTML_RESULT: +#if WK_API_ENABLED + case DW_FEATURE_HTML_MESSAGE: +#endif case DW_FEATURE_CONTAINER_STRIPE: case DW_FEATURE_MLE_WORD_WRAP: case DW_FEATURE_UTF8_UNICODE: @@ -13548,6 +13553,9 @@ #endif case DW_FEATURE_HTML: case DW_FEATURE_HTML_RESULT: +#if WK_API_ENABLED + case DW_FEATURE_HTML_MESSAGE: +#endif case DW_FEATURE_CONTAINER_STRIPE: case DW_FEATURE_MLE_WORD_WRAP: case DW_FEATURE_UTF8_UNICODE: