NetSurf
Enumerations
content_type.h File Reference

Declaration of content enumerations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  content_debug { CONTENT_DEBUG_RENDER , CONTENT_DEBUG_DOM , CONTENT_DEBUG_REDRAW }
 Debugging dump operations. More...
 
enum  content_encoding_type { CONTENT_ENCODING_NORMAL , CONTENT_ENCODING_SOURCE }
 Content encoding information types. More...
 
enum  content_type {
  CONTENT_NONE = 0x00 , CONTENT_HTML = 0x01 , CONTENT_TEXTPLAIN = 0x02 , CONTENT_CSS = 0x04 ,
  CONTENT_IMAGE = 0x08 , CONTENT_PLUGIN = 0x10 , CONTENT_THEME = 0x20 , CONTENT_JS = 0x40 ,
  CONTENT_SCRIPT = 0x40 , CONTENT_ANY = 0x7f
}
 The type of a content. More...
 
enum  content_status { CONTENT_STATUS_LOADING , CONTENT_STATUS_READY , CONTENT_STATUS_DONE , CONTENT_STATUS_ERROR }
 Status of a content. More...
 
enum  content_msg {
  CONTENT_MSG_LOG , CONTENT_MSG_SSL_CERTS , CONTENT_MSG_LOADING , CONTENT_MSG_READY ,
  CONTENT_MSG_DONE , CONTENT_MSG_ERROR , CONTENT_MSG_REDIRECT , CONTENT_MSG_STATUS ,
  CONTENT_MSG_REFORMAT , CONTENT_MSG_REDRAW , CONTENT_MSG_REFRESH , CONTENT_MSG_DOWNLOAD ,
  CONTENT_MSG_LINK , CONTENT_MSG_GETTHREAD , CONTENT_MSG_GETDIMS , CONTENT_MSG_SCROLL ,
  CONTENT_MSG_DRAGSAVE , CONTENT_MSG_SAVELINK , CONTENT_MSG_POINTER , CONTENT_MSG_SELECTION ,
  CONTENT_MSG_CARET , CONTENT_MSG_DRAG , CONTENT_MSG_SELECTMENU , CONTENT_MSG_GADGETCLICK ,
  CONTENT_MSG_TEXTSEARCH
}
 Used in callbacks to indicate what has occurred. More...
 

Detailed Description

Declaration of content enumerations.

The content enumerations are defined here.

Definition in file content_type.h.

Enumeration Type Documentation

◆ content_debug

Debugging dump operations.

Enumerator
CONTENT_DEBUG_RENDER 

Debug the contents rendering.

CONTENT_DEBUG_DOM 

Debug the contents Document Object.

CONTENT_DEBUG_REDRAW 

Debug redraw operations.

Definition at line 30 of file content_type.h.

◆ content_encoding_type

Content encoding information types.

Enumerator
CONTENT_ENCODING_NORMAL 

The content encoding.

CONTENT_ENCODING_SOURCE 

The content encoding source.

Definition at line 43 of file content_type.h.

◆ content_msg

Used in callbacks to indicate what has occurred.

Enumerator
CONTENT_MSG_LOG 

Content wishes to log something.

CONTENT_MSG_SSL_CERTS 

Content is from SSL and this is its chain.

CONTENT_MSG_LOADING 

fetching or converting

CONTENT_MSG_READY 

may be displayed

CONTENT_MSG_DONE 

content has finished processing

CONTENT_MSG_ERROR 

error occurred

CONTENT_MSG_REDIRECT 

fetch url redirect occured

CONTENT_MSG_STATUS 

new status string

CONTENT_MSG_REFORMAT 

content_reformat done

CONTENT_MSG_REDRAW 

needs redraw (eg.

new animation frame)

CONTENT_MSG_REFRESH 

wants refresh

CONTENT_MSG_DOWNLOAD 

download, not for display

CONTENT_MSG_LINK 

RFC5988 link.

CONTENT_MSG_GETTHREAD 

Javascript thread.

CONTENT_MSG_GETDIMS 

Get viewport dimensions.

CONTENT_MSG_SCROLL 

Request to scroll content.

CONTENT_MSG_DRAGSAVE 

Allow drag saving of content.

CONTENT_MSG_SAVELINK 

Allow URL to be saved.

CONTENT_MSG_POINTER 

Wants a specific mouse pointer set.

CONTENT_MSG_SELECTION 

A selection made or cleared.

CONTENT_MSG_CARET 

Caret movement / hiding.

CONTENT_MSG_DRAG 

A drag started or ended.

CONTENT_MSG_SELECTMENU 

Create a select menu.

CONTENT_MSG_GADGETCLICK 

A gadget has been clicked on (mainly for file)

CONTENT_MSG_TEXTSEARCH 

A free text search action has occurred.

Definition at line 105 of file content_type.h.

◆ content_status

Status of a content.

Enumerator
CONTENT_STATUS_LOADING 

Content is being fetched or converted and is not safe to display.

CONTENT_STATUS_READY 

Some parts of content still being loaded, but can be displayed.

CONTENT_STATUS_DONE 

Content has completed all processing.

CONTENT_STATUS_ERROR 

Error occurred, content will be destroyed imminently.

Definition at line 87 of file content_type.h.

◆ content_type

The type of a content.

Enumerator
CONTENT_NONE 

no type for content

CONTENT_HTML 

content is HTML

CONTENT_TEXTPLAIN 

content is plain text

CONTENT_CSS 

content is CSS

CONTENT_IMAGE 

All images.

CONTENT_PLUGIN 

Navigator API Plugins.

CONTENT_THEME 

RISC OS themes content.

CONTENT_JS 

Javascript.

CONTENT_SCRIPT 

All script types.

CONTENT_ANY 

Any content matches.

Definition at line 53 of file content_type.h.