27#ifndef NETSURF_CONTENT_CONTENT_H_
28#define NETSURF_CONTENT_CONTENT_H_
30#include <libwapcaplet/libwapcaplet.h>
411 int x,
int y,
int scrx,
int scry);
421 int x,
int y,
char *file);
Browser window console stuff.
browser_window_console_source
Sources of messages which end up in the browser window console.
browser_window_console_flags
Flags for browser window console logging.
struct content_rfc5988_link * content_find_rfc5988_link(struct hlcache_handle *h, lwc_string *rel)
find link in content that matches the rel string.
nserror content_close(struct hlcache_handle *h)
The window containing the content has been closed.
bool content_get_quirks(struct hlcache_handle *h)
Retrieve quirkiness of a content.
bool content_exec(struct hlcache_handle *h, const char *src, size_t srclen)
Execute some JavaScript code inside a content object.
void content_mouse_track(struct hlcache_handle *h, struct browser_window *bw, browser_mouse_state mouse, int x, int y)
Handle mouse movements in a content window.
void content_request_redraw(struct hlcache_handle *h, int x, int y, int width, int height)
Request a redraw of an area of a content.
void content_reformat(struct hlcache_handle *h, bool background, int width, int height)
Reformat to new size.
bool content_saw_insecure_objects(struct hlcache_handle *h)
Determine if the content referred to any insecure objects.
bool content_scroll_at_point(struct hlcache_handle *h, int x, int y, int scrx, int scry)
scroll content at coordnate
bool content_is_locked(struct hlcache_handle *h)
Return whether a content is currently locked.
nserror content_get_contextual_content(struct hlcache_handle *h, int x, int y, struct browser_window_features *data)
Get positional contextural information for a content.
bool content_keypress(struct hlcache_handle *h, uint32_t key)
Handle keypresses.
int content_get_available_width(struct hlcache_handle *h)
Retrieve available width of content.
content_status content__get_status(struct content *c)
Retrieve status of content.
void content_clear_selection(struct hlcache_handle *h)
Tell a content that any selection it has, or one of its objects has, must be cleared.
bool content_get_opaque(struct hlcache_handle *h)
Determine if a content is opaque from handle.
struct nsurl * content_get_refresh_url(struct hlcache_handle *h)
Retrieve the refresh URL for a content.
const char * content_get_status_message(struct hlcache_handle *h)
Retrieve status message associated with content.
void content_mouse_action(struct hlcache_handle *h, struct browser_window *bw, browser_mouse_state mouse, int x, int y)
Handle mouse clicks and movements in a content window.
bool content_drop_file_at_point(struct hlcache_handle *h, int x, int y, char *file)
Drag and drop a file at coordinate.
content_status content_get_status(struct hlcache_handle *h)
Retrieve status of content.
nserror content_open(struct hlcache_handle *h, struct browser_window *bw, struct content *page, struct object_params *params)
A window containing the content has been opened.
char * content_get_selection(struct hlcache_handle *h)
Get a text selection from a content.
nserror content_debug(struct hlcache_handle *h, enum content_debug op)
Control debug con a content.
bool content_can_reformat(struct hlcache_handle *h)
Get whether a content can reformat.
Declaration of content enumerations.
content_status
Status of a content.
content_debug
Debugging dump operations.
nserror
Enumeration of error codes.
Core mouse and pointer states.
browser_pointer_shape
Mouse pointer type.
browser_mouse_state
Mouse state: 1 is primary mouse button.
struct nsurl nsurl
NetSurf URL object.
Page features at a specific spatial location.
lwc_string * rel
the link relationship - must be present
struct nsurl * href
the link href - must be present
struct content_rfc5988_link * next
next rfc5988_link in list
Content which corresponds to a single URL.
Handle to low-level cache object.
Parameters for object element and similar elements.
Extra data for some content_msg messages.
struct content_msg_data::@99 errordata
CONTENT_MSG_ERROR - Error from content or underlying fetch.
nserror errorcode
The error code to convey meaning.
struct content_msg_data::@103 scroll
CONTENT_MSG_SCROLL - Part of content to scroll to show.
browser_window_console_flags flags
The flags of the logging.
@ CONTENT_TEXTSEARCH_FIND
Free text search find operation has started or finished.
const char * msg
The message to log.
const struct rect * clip
Carret clip rect.
struct content_msg_data::@111 textsearch
CONTENT_MSG_TEXTSEARCH - Free text search action.
int delay
CONTENT_MSG_REFRESH - Minimum delay.
struct content_msg_data::@110 gadget_click
CONTENT_MSG_GADGETCLICK - User clicked on a form gadget.
size_t msglen
The length of that message.
browser_pointer_shape pointer
CONTENT_MSG_POINTER - Mouse pointer to set.
struct content_msg_data::@107 caret
CONTENT_MSG_CARET - set caret position or, hide caret.
struct content_msg_data::@105 savelink
CONTENT_MSG_SAVELINK - Save a URL.
const char * errormsg
The message.
bool selection
false for selection cleared
const struct cert_chain * chain
CONTENT_MSG_SSL_CERTS - The certificate chain from the underlying fetch.
struct jsthread ** jsthread
CONTENT_MSG_GETTHREAD - Javascript context (thread)
struct hlcache_handle * content
if NULL, save the content generating the message
struct content_rfc5988_link * rfc5988_link
CONTENT_MSG_RFC5988_LINK - rfc5988 link data.
struct nsurl * to
Redirect target.
struct content_msg_data::@104 dragsave
CONTENT_MSG_DRAGSAVE - Drag save a content.
@ CONTENT_TEXTSEARCH_MATCH
Free text search match state has changed.
@ CONTENT_TEXTSEARCH_BACK
Free text search back available state changed.
unsigned * viewport_height
struct content_msg_data::@108 drag
CONTENT_MSG_DRAG - Drag start or end.
struct content_msg_data::@109 select_menu
CONTENT_MSG_SELECTMENU - Create select menu at pointer.
struct nsurl * from
Redirect origin.
unsigned * viewport_width
@ CONTENT_TEXTSEARCH_FORWARD
Free text search forward available state changed.
struct content_msg_data::@98 log
CONTENT_MSG_LOG - Information for logging.
struct llcache_handle * download
CONTENT_MSG_DOWNLOAD - Low-level cache handle.
struct form_control * gadget
browser_window_console_source src
The source of the logging.
struct content_msg_data::@102 getdims
CONTENT_MSG_GETDIMS - Get the viewport dimensions.
bool state
state for operation
const char * string
search string
enum content_msg_data::@104::@112 type
struct content_msg_data::@100 redirect
CONTENT_MSG_REDIRECT - Redirect info.
void * ctx
context passed to browser_window_search()
struct content_msg_data::@101 redraw
CONTENT_MSG_REDRAW - Area of content which needs redrawing.
const char * explicit_status_text
CONTENT_MSG_STATUS - Status message update.
struct content_msg_data::@107::@114 pos
With CONTENT_CARET_SET_POS.
@ CONTENT_TEXTSEARCH_RECENT
add a search query string to the recent searches
bool background
CONTENT_MSG_REFORMAT - Reformat should not cause a redraw.