Add content handlers for queries
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
3bd7a2ddd6
commit
1905200154
|
@ -642,7 +642,14 @@ nserror nscss_import(hlcache_handle *handle,
|
|||
error = nscss_import_complete(ctx);
|
||||
/* Already released handle */
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
break;
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -129,6 +129,16 @@ html_convert_css_callback(hlcache_handle *css,
|
|||
/* Really don't want this to continue after the switch */
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -454,6 +454,16 @@ html_object_callback(hlcache_handle *object,
|
|||
}
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -195,6 +195,16 @@ convert_script_async_cb(hlcache_handle *script,
|
|||
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -261,6 +271,16 @@ convert_script_defer_cb(hlcache_handle *script,
|
|||
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -353,6 +373,16 @@ convert_script_sync_cb(hlcache_handle *script,
|
|||
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -446,6 +446,16 @@ browser_window_favicon_callback(hlcache_handle *c,
|
|||
}
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1124,6 +1134,20 @@ browser_window_callback(hlcache_handle *c, const hlcache_event *event, void *pw)
|
|||
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, we directly invoke the known global handler for queries */
|
||||
return netsurf_llcache_query_handler(
|
||||
event->data.query_msg->query,
|
||||
NULL,
|
||||
event->data.query_msg->cb,
|
||||
event->data.query_msg->cb_pw);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -307,6 +307,16 @@ search_web_ico_callback(hlcache_handle *ico,
|
|||
provider->ico_handle = NULL;
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -467,6 +477,16 @@ default_ico_callback(hlcache_handle *ico,
|
|||
ctx->default_ico_handle = NULL;
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -4945,6 +4945,16 @@ treeview_res_cb(struct hlcache_handle *handle,
|
|||
r->height = content_get_height(handle);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1327,6 +1327,16 @@ static nserror ro_gui_url_bar_res_cb(hlcache_handle *handle,
|
|||
r->height = content_get_height(handle);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_QUERY:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
/* For now, the only safe decision is to cancel the fetch */
|
||||
event->data.query_msg->cb(false, event->data.query_msg->cb_pw);
|
||||
return NSERROR_OK;
|
||||
|
||||
case CONTENT_MSG_QUERY_FINISHED:
|
||||
/** \todo QUERY - Decide what is right here */
|
||||
return NSERROR_OK;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue