NetSurf
Data Fields
content_msg_data Union Reference

Extra data for some content_msg messages. More...

#include <content.h>

Collaboration diagram for content_msg_data:
[legend]

Data Fields

struct {
   browser_window_console_source   src
 The source of the logging. More...
 
   const char *   msg
 The message to log. More...
 
   size_t   msglen
 The length of that message. More...
 
   browser_window_console_flags   flags
 The flags of the logging. More...
 
log
 CONTENT_MSG_LOG - Information for logging. More...
 
const struct cert_chainchain
 CONTENT_MSG_SSL_CERTS - The certificate chain from the underlying fetch. More...
 
struct {
   nserror   errorcode
 The error code to convey meaning. More...
 
   const char *   errormsg
 The message. More...
 
errordata
 CONTENT_MSG_ERROR - Error from content or underlying fetch. More...
 
struct {
   struct nsurl *   from
 Redirect origin. More...
 
   struct nsurl *   to
 Redirect target. More...
 
redirect
 CONTENT_MSG_REDIRECT - Redirect info. More...
 
struct {
   int   x
 
   int   y
 
   int   width
 
   int   height
 
redraw
 CONTENT_MSG_REDRAW - Area of content which needs redrawing. More...
 
int delay
 CONTENT_MSG_REFRESH - Minimum delay. More...
 
bool background
 CONTENT_MSG_REFORMAT - Reformat should not cause a redraw. More...
 
const char * explicit_status_text
 CONTENT_MSG_STATUS - Status message update. More...
 
struct llcache_handledownload
 CONTENT_MSG_DOWNLOAD - Low-level cache handle. More...
 
struct content_rfc5988_linkrfc5988_link
 CONTENT_MSG_RFC5988_LINK - rfc5988 link data. More...
 
struct jsthread ** jsthread
 CONTENT_MSG_GETTHREAD - Javascript context (thread) More...
 
struct {
   unsigned *   viewport_width
 
   unsigned *   viewport_height
 
getdims
 CONTENT_MSG_GETDIMS - Get the viewport dimensions. More...
 
struct {
   bool   area
 
   int   x0
 
   int   y0
 
   int   x1
 
   int   y1
 
scroll
 CONTENT_MSG_SCROLL - Part of content to scroll to show. More...
 
struct {
enum  { CONTENT_SAVE_ORIG , CONTENT_SAVE_NATIVE , CONTENT_SAVE_COMPLETE , CONTENT_SAVE_SOURCE }
 
   enum content_msg_data:: { ... }    type
 
   struct hlcache_handle *   content
 if NULL, save the content generating the message More...
 
dragsave
 CONTENT_MSG_DRAGSAVE - Drag save a content. More...
 
struct {
   struct nsurl *   url
 
   const char *   title
 
savelink
 CONTENT_MSG_SAVELINK - Save a URL. More...
 
browser_pointer_shape pointer
 CONTENT_MSG_POINTER - Mouse pointer to set. More...
 
struct {
   bool   selection
 false for selection cleared More...
 
   bool   read_only
 
selection
 CONTENT_MSG_SELECTION - Selection made or cleared. More...
 
struct {
enum  { CONTENT_CARET_SET_POS , CONTENT_CARET_HIDE , CONTENT_CARET_REMOVE }
 
   enum content_msg_data:: { ... }    type
 
   struct {
      int   x
 Carret x-coord. More...
 
      int   y
 Carret y-coord. More...
 
      int   height
 Carret height. More...
 
      const struct rect *   clip
 Carret clip rect. More...
 
   }   pos
 With CONTENT_CARET_SET_POS. More...
 
caret
 CONTENT_MSG_CARET - set caret position or, hide caret. More...
 
struct {
enum  { CONTENT_DRAG_NONE , CONTENT_DRAG_SCROLL , CONTENT_DRAG_SELECTION }
 
   enum content_msg_data:: { ... }    type
 
   const struct rect *   rect
 
drag
 CONTENT_MSG_DRAG - Drag start or end. More...
 
struct {
   struct form_control *   gadget
 
select_menu
 CONTENT_MSG_SELECTMENU - Create select menu at pointer. More...
 
struct {
   struct form_control *   gadget
 
gadget_click
 CONTENT_MSG_GADGETCLICK - User clicked on a form gadget. More...
 
struct {
enum  {
  CONTENT_TEXTSEARCH_FIND , CONTENT_TEXTSEARCH_MATCH , CONTENT_TEXTSEARCH_BACK , CONTENT_TEXTSEARCH_FORWARD ,
  CONTENT_TEXTSEARCH_RECENT
}
 The type of text search operation. More...
 
   enum content_msg_data:: { ... }    type
 The type of text search operation. More...
 
   void *   ctx
 context passed to browser_window_search() More...
 
   bool   state
 state for operation More...
 
   const char *   string
 search string More...
 
textsearch
 CONTENT_MSG_TEXTSEARCH - Free text search action. More...
 

Detailed Description

Extra data for some content_msg messages.

Definition at line 60 of file content.h.

Field Documentation

◆ area

bool content_msg_data::area

Definition at line 162 of file content.h.

Referenced by browser_window_callback(), content_textsearch_step(), and search_text().

◆ background

bool content_msg_data::background

CONTENT_MSG_REFORMAT - Reformat should not cause a redraw.

Definition at line 121 of file content.h.

Referenced by browser_window_callback(), and content__reformat().

◆ 

struct { ... } content_msg_data::caret

CONTENT_MSG_CARET - set caret position or, hide caret.

Referenced by browser_window_callback(), html_object_callback(), and html_set_focus().

◆ chain

const struct cert_chain* content_msg_data::chain

CONTENT_MSG_SSL_CERTS - The certificate chain from the underlying fetch.

Definition at line 79 of file content.h.

Referenced by browser_window_callback(), and hlcache_llcache_callback().

◆ clip

const struct rect* content_msg_data::clip

Carret clip rect.

Definition at line 215 of file content.h.

Referenced by browser_window_callback(), html_object_callback(), and html_set_focus().

◆ content

struct hlcache_handle* content_msg_data::content

if NULL, save the content generating the message

Definition at line 178 of file content.h.

Referenced by default_mouse_action(), html_object_callback(), html_process_inserted_meta(), and mouse_action_drag_none().

◆ ctx

void* content_msg_data::ctx

context passed to browser_window_search()

Definition at line 277 of file content.h.

Referenced by browser_window_callback(), gif_redraw(), and textsearch_broadcast().

◆ delay

int content_msg_data::delay

CONTENT_MSG_REFRESH - Minimum delay.

Definition at line 116 of file content.h.

Referenced by html_object_callback(), and html_process_inserted_meta().

◆ download

struct llcache_handle* content_msg_data::download

CONTENT_MSG_DOWNLOAD - Low-level cache handle.

Definition at line 133 of file content.h.

Referenced by browser_window_callback(), and hlcache_migrate_ctx().

◆ 

struct { ... } content_msg_data::drag

CONTENT_MSG_DRAG - Drag start or end.

Referenced by browser_window_callback(), html_object_callback(), and html_set_drag_type().

◆ 

struct { ... } content_msg_data::dragsave

CONTENT_MSG_DRAGSAVE - Drag save a content.

Referenced by browser_window_callback(), default_mouse_action(), html_object_callback(), and mouse_action_drag_none().

◆ errorcode

nserror content_msg_data::errorcode

◆ 

struct { ... } content_msg_data::errordata

◆ errormsg

const char* content_msg_data::errormsg

The message.

if NSERROR_UNKNOWN then this is the direct message, otherwise is some kind of metadata (e.g. a message name or somesuch) but always a null terminated string.

Definition at line 95 of file content.h.

Referenced by content_broadcast_error(), content_llcache_callback(), convert_script_async_cb(), convert_script_defer_cb(), convert_script_sync_cb(), default_ico_callback(), hlcache_llcache_callback(), hlcache_migrate_ctx(), html_convert_css_callback(), jxl_report_fail(), nsjpeg_convert(), nsjpegxl_convert(), search_web_ico_callback(), and theme_install_callback().

◆ explicit_status_text

const char* content_msg_data::explicit_status_text

CONTENT_MSG_STATUS - Status message update.

If NULL, the content's internal status text has been updated, and listener should use content_get_status_message()

Definition at line 128 of file content.h.

Referenced by browser_window_callback(), content_llcache_callback(), html_finish_conversion(), mouse_action_drag_none(), mouse_action_drag_scrollbar(), mouse_action_select_menu(), and textplain_mouse_action().

◆ flags

browser_window_console_flags content_msg_data::flags

The flags of the logging.

Definition at line 72 of file content.h.

Referenced by browser_window_callback(), content_textsearch_step(), and search_text().

◆ from

struct nsurl* content_msg_data::from

Redirect origin.

Definition at line 102 of file content.h.

Referenced by browser_window_callback(), content_llcache_callback(), and hlcache_llcache_callback().

◆ gadget

struct form_control* content_msg_data::gadget

Definition at line 235 of file content.h.

Referenced by browser_window_callback(), and gadget_mouse_action().

◆ 

struct { ... } content_msg_data::gadget_click

CONTENT_MSG_GADGETCLICK - User clicked on a form gadget.

Referenced by browser_window_callback(), and gadget_mouse_action().

◆ 

struct { ... } content_msg_data::getdims

CONTENT_MSG_GETDIMS - Get the viewport dimensions.

Referenced by browser_window_callback(), and html_get_dimensions().

◆ height

int content_msg_data::height

◆ jsthread

struct jsthread** content_msg_data::jsthread

CONTENT_MSG_GETTHREAD - Javascript context (thread)

Definition at line 143 of file content.h.

Referenced by dom_default_action_DOMNodeInserted_cb(), and html_process_script().

◆ 

struct { ... } content_msg_data::log

CONTENT_MSG_LOG - Information for logging.

Referenced by browser_window_callback().

◆ msg

const char* content_msg_data::msg

The message to log.

Definition at line 68 of file content.h.

Referenced by browser_window_callback(), content_broadcast_error(), and jxl_report_fail().

◆ msglen

size_t content_msg_data::msglen

The length of that message.

Definition at line 70 of file content.h.

Referenced by browser_window_callback().

◆ pointer

browser_pointer_shape content_msg_data::pointer

CONTENT_MSG_POINTER - Mouse pointer to set.

Definition at line 192 of file content.h.

Referenced by browser_window_callback(), content_mouse_track(), mouse_action_drag_none(), and textplain_mouse_action().

◆ 

struct { ... } content_msg_data::pos

With CONTENT_CARET_SET_POS.

Referenced by browser_window_callback(), html_object_callback(), and html_set_focus().

◆ read_only

bool content_msg_data::read_only

Definition at line 199 of file content.h.

◆ rect

const struct rect* content_msg_data::rect

Definition at line 228 of file content.h.

Referenced by browser_window_callback(), html_object_callback(), and html_set_drag_type().

◆ 

struct { ... } content_msg_data::redirect

CONTENT_MSG_REDIRECT - Redirect info.

Fetch URL redirect occured

Referenced by browser_window_callback(), content_llcache_callback(), and hlcache_llcache_callback().

◆ 

struct { ... } content_msg_data::redraw

CONTENT_MSG_REDRAW - Area of content which needs redrawing.

Referenced by content__request_redraw(), gif__animate(), and html_object_callback().

◆ rfc5988_link

struct content_rfc5988_link* content_msg_data::rfc5988_link

CONTENT_MSG_RFC5988_LINK - rfc5988 link data.

Definition at line 138 of file content.h.

Referenced by browser_window_callback(), and content__add_rfc5988_link().

◆ 

struct { ... } content_msg_data::savelink

CONTENT_MSG_SAVELINK - Save a URL.

Referenced by browser_window_callback(), and link_mouse_action().

◆ 

struct { ... } content_msg_data::scroll

CONTENT_MSG_SCROLL - Part of content to scroll to show.

Referenced by browser_window_callback(), content_textsearch_step(), html_object_callback(), and search_text().

◆ 

struct { ... } content_msg_data::select_menu

CONTENT_MSG_SELECTMENU - Create select menu at pointer.

Referenced by browser_window_callback(), and gadget_mouse_action().

◆ selection [1/2]

bool content_msg_data::selection

false for selection cleared

Definition at line 198 of file content.h.

Referenced by browser_window_callback(), html_object_callback(), and html_set_selection().

◆  [2/2]

struct { ... } content_msg_data::selection

CONTENT_MSG_SELECTION - Selection made or cleared.

◆ src

browser_window_console_source content_msg_data::src

The source of the logging.

Definition at line 66 of file content.h.

Referenced by browser_window_callback(), and html_process_script().

◆ state

bool content_msg_data::state

state for operation

Definition at line 281 of file content.h.

Referenced by browser_window_callback(), and textsearch_broadcast().

◆ string

const char* content_msg_data::string

search string

Definition at line 285 of file content.h.

Referenced by browser_window_callback(), and textsearch_broadcast().

◆ 

struct { ... } content_msg_data::textsearch

CONTENT_MSG_TEXTSEARCH - Free text search action.

Referenced by browser_window_callback(), content_textsearch_step(), and textsearch_broadcast().

◆ title

const char* content_msg_data::title

◆ to

struct nsurl* content_msg_data::to

Redirect target.

Definition at line 103 of file content.h.

Referenced by browser_window_callback(), content_llcache_callback(), and hlcache_llcache_callback().

◆  [1/4]

enum { ... } content_msg_data::type

◆  [2/4]

enum { ... } content_msg_data::type

◆  [3/4]

enum { ... } content_msg_data::type

◆  [4/4]

enum { ... } content_msg_data::type

The type of text search operation.

◆ url

struct nsurl* content_msg_data::url

◆ viewport_height

unsigned* content_msg_data::viewport_height

Definition at line 151 of file content.h.

Referenced by browser_window_callback().

◆ viewport_width

unsigned* content_msg_data::viewport_width
Todo:
Consider getting screen_width, screen_height too.

Definition at line 150 of file content.h.

Referenced by html_get_dimensions().

◆ width

int content_msg_data::width

Definition at line 110 of file content.h.

Referenced by content__request_redraw(), gif__animate(), and html_object_callback().

◆ x

int content_msg_data::x

◆ x0

int content_msg_data::x0

Definition at line 163 of file content.h.

Referenced by content_textsearch_step(), html_object_callback(), and search_text().

◆ x1

int content_msg_data::x1

Definition at line 164 of file content.h.

Referenced by search_text().

◆ y

int content_msg_data::y

◆ y0

int content_msg_data::y0

Definition at line 163 of file content.h.

Referenced by content_textsearch_step(), html_object_callback(), and search_text().

◆ y1

int content_msg_data::y1

Definition at line 164 of file content.h.

Referenced by search_text().


The documentation for this union was generated from the following file: