NetSurf
content_type.h
Go to the documentation of this file.
1/*
2 * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * Declaration of content enumerations.
22 *
23 * The content enumerations are defined here.
24 */
25
26#ifndef NETSURF_CONTENT_TYPE_H
27#define NETSURF_CONTENT_TYPE_H
28
29/** Debugging dump operations */
31 /** Debug the contents rendering. */
33
34 /** Debug the contents Document Object. */
36
37 /** Debug redraw operations. */
39};
40
41
42/** Content encoding information types */
44 /** The content encoding */
46
47 /** The content encoding source */
49};
50
51
52/** The type of a content. */
53typedef enum {
54 /** no type for content */
56
57 /** content is HTML */
59
60 /** content is plain text */
62
63 /** content is CSS */
65
66 /** All images */
68
69 /** Navigator API Plugins */
71
72 /** RISC OS themes content */
74
75 /** Javascript */
76 CONTENT_JS = 0x40,
77
78 /** All script types. */
80
81 /** Any content matches */
82 CONTENT_ANY = 0x7f
84
85
86/** Status of a content */
87typedef enum {
88 /** Content is being fetched or converted and is not safe to display. */
90
91 /** Some parts of content still being loaded, but can be displayed. */
93
94 /** Content has completed all processing. */
96
97 /** Error occurred, content will be destroyed imminently. */
100
101
102/**
103 * Used in callbacks to indicate what has occurred.
104 */
105typedef enum {
106 /** Content wishes to log something */
108
109 /** Content is from SSL and this is its chain */
111
112 /** fetching or converting */
114
115 /** may be displayed */
117
118 /** content has finished processing */
120
121 /** error occurred */
123
124 /** fetch url redirect occured */
126
127 /** new status string */
129
130 /** content_reformat done */
132
133 /** needs redraw (eg. new animation frame) */
135
136 /** wants refresh */
138
139 /** download, not for display */
141
142 /** RFC5988 link */
144
145 /** Javascript thread */
147
148 /** Get viewport dimensions. */
150
151 /** Request to scroll content */
153
154 /** Allow drag saving of content */
156
157 /** Allow URL to be saved */
159
160 /** Wants a specific mouse pointer set */
162
163 /** A selection made or cleared */
165
166 /** Caret movement / hiding */
168
169 /** A drag started or ended */
171
172 /** Create a select menu */
174
175 /** A gadget has been clicked on (mainly for file) */
177
178 /** A free text search action has occurred */
181
182
183#endif
content_status
Status of a content.
Definition: content_type.h:87
@ CONTENT_STATUS_READY
Some parts of content still being loaded, but can be displayed.
Definition: content_type.h:92
@ CONTENT_STATUS_DONE
Content has completed all processing.
Definition: content_type.h:95
@ CONTENT_STATUS_ERROR
Error occurred, content will be destroyed imminently.
Definition: content_type.h:98
@ CONTENT_STATUS_LOADING
Content is being fetched or converted and is not safe to display.
Definition: content_type.h:89
content_type
The type of a content.
Definition: content_type.h:53
@ CONTENT_JS
Javascript.
Definition: content_type.h:76
@ CONTENT_IMAGE
All images.
Definition: content_type.h:67
@ CONTENT_CSS
content is CSS
Definition: content_type.h:64
@ CONTENT_PLUGIN
Navigator API Plugins.
Definition: content_type.h:70
@ CONTENT_NONE
no type for content
Definition: content_type.h:55
@ CONTENT_ANY
Any content matches.
Definition: content_type.h:82
@ CONTENT_THEME
RISC OS themes content.
Definition: content_type.h:73
@ CONTENT_SCRIPT
All script types.
Definition: content_type.h:79
@ CONTENT_HTML
content is HTML
Definition: content_type.h:58
@ CONTENT_TEXTPLAIN
content is plain text
Definition: content_type.h:61
content_msg
Used in callbacks to indicate what has occurred.
Definition: content_type.h:105
@ CONTENT_MSG_TEXTSEARCH
A free text search action has occurred.
Definition: content_type.h:179
@ CONTENT_MSG_LINK
RFC5988 link.
Definition: content_type.h:143
@ CONTENT_MSG_SELECTMENU
Create a select menu.
Definition: content_type.h:173
@ CONTENT_MSG_REFRESH
wants refresh
Definition: content_type.h:137
@ CONTENT_MSG_GETDIMS
Get viewport dimensions.
Definition: content_type.h:149
@ CONTENT_MSG_GADGETCLICK
A gadget has been clicked on (mainly for file)
Definition: content_type.h:176
@ CONTENT_MSG_STATUS
new status string
Definition: content_type.h:128
@ CONTENT_MSG_SCROLL
Request to scroll content.
Definition: content_type.h:152
@ CONTENT_MSG_LOG
Content wishes to log something.
Definition: content_type.h:107
@ CONTENT_MSG_DONE
content has finished processing
Definition: content_type.h:119
@ CONTENT_MSG_DOWNLOAD
download, not for display
Definition: content_type.h:140
@ CONTENT_MSG_LOADING
fetching or converting
Definition: content_type.h:113
@ CONTENT_MSG_ERROR
error occurred
Definition: content_type.h:122
@ CONTENT_MSG_REDIRECT
fetch url redirect occured
Definition: content_type.h:125
@ CONTENT_MSG_DRAGSAVE
Allow drag saving of content.
Definition: content_type.h:155
@ CONTENT_MSG_POINTER
Wants a specific mouse pointer set.
Definition: content_type.h:161
@ CONTENT_MSG_SELECTION
A selection made or cleared.
Definition: content_type.h:164
@ CONTENT_MSG_SSL_CERTS
Content is from SSL and this is its chain.
Definition: content_type.h:110
@ CONTENT_MSG_DRAG
A drag started or ended.
Definition: content_type.h:170
@ CONTENT_MSG_GETTHREAD
Javascript thread.
Definition: content_type.h:146
@ CONTENT_MSG_REDRAW
needs redraw (eg.
Definition: content_type.h:134
@ CONTENT_MSG_READY
may be displayed
Definition: content_type.h:116
@ CONTENT_MSG_SAVELINK
Allow URL to be saved.
Definition: content_type.h:158
@ CONTENT_MSG_REFORMAT
content_reformat done
Definition: content_type.h:131
@ CONTENT_MSG_CARET
Caret movement / hiding.
Definition: content_type.h:167
content_debug
Debugging dump operations.
Definition: content_type.h:30
@ CONTENT_DEBUG_REDRAW
Debug redraw operations.
Definition: content_type.h:38
@ CONTENT_DEBUG_RENDER
Debug the contents rendering.
Definition: content_type.h:32
@ CONTENT_DEBUG_DOM
Debug the contents Document Object.
Definition: content_type.h:35
content_encoding_type
Content encoding information types.
Definition: content_type.h:43
@ CONTENT_ENCODING_NORMAL
The content encoding.
Definition: content_type.h:45
@ CONTENT_ENCODING_SOURCE
The content encoding source.
Definition: content_type.h:48