NetSurf
Public Types | Data Fields
browser_window Struct Reference

Browser window data. More...

#include <browser_private.h>

Collaboration diagram for browser_window:
[legend]

Public Types

enum  { BROWSER_WINDOW_NORMAL , BROWSER_WINDOW_IFRAME , BROWSER_WINDOW_FRAME , BROWSER_WINDOW_FRAMESET }
 Window characteristics. More...
 

Data Fields

struct hlcache_handlecurrent_content
 Content handle of page currently displayed which must have READY or DONE status or NULL for no content. More...
 
struct browser_fetch_parameters current_parameters
 The fetch parameters for the current content. More...
 
struct cert_chaincurrent_cert_chain
 The certificate chain for the current content. More...
 
struct hlcache_handleloading_content
 Content handle of page in process of being loaded or NULL if no page is being loaded. More...
 
struct browser_fetch_parameters loading_parameters
 The fetch parameters for the loading content. More...
 
struct cert_chainloading_cert_chain
 The certificate chain for the loading content. More...
 
struct {
   struct hlcache_handle *   current
 content handle of current page favicon More...
 
   struct hlcache_handle *   loading
 content handle for favicon which we started loading early More...
 
   bool   failed
 flag to indicate favicon fetch already failed which prevents infinite error looping. More...
 
favicon
 Favicon. More...
 
struct historyhistory
 local history handle. More...
 
struct gui_windowwindow
 Platform specific window data only valid at top level. More...
 
bool throbbing
 Busy indicator is active. More...
 
bool history_add
 Add loading_content to the window history when it loads. More...
 
bool internal_nav
 Internal navigation, do not update URL etc. More...
 
lwc_string * frag_id
 Fragment identifier for current_content. More...
 
struct {
   browser_drag_type   type
 the type of drag in progress More...
 
   struct browser_window *   window
 Current drag's browser window, when not in root bw. More...
 
   int   start_x
 Mouse position at start of current scroll drag. More...
 
   int   start_y
 
   int   start_scroll_x
 Scroll offsets at start of current scroll draw. More...
 
   int   start_scroll_y
 
   unsigned int   resize_left: 1
 Frame resize directions for current frame resize drag. More...
 
   unsigned int   resize_right: 1
 
   unsigned int   resize_up: 1
 
   unsigned int   resize_down: 1
 
drag
 Current drag status. More...
 
bool download
 Current fetch is download. More...
 
int refresh_interval
 Refresh interval (-1 if undefined) More...
 
int x
 Window dimensions. More...
 
int y
 
int width
 
int height
 
struct scrollbarscroll_x
 Horizontal scroll. More...
 
struct scrollbarscroll_y
 Vertical scroll. More...
 
float scale
 scale of window contents More...
 
enum browser_window:: { ... }  browser_window_type
 Window characteristics. More...
 
int rows
 frameset characteristics More...
 
int cols
 
struct frame_dimension frame_width
 frame dimensions More...
 
struct frame_dimension frame_height
 
int margin_width
 
int margin_height
 
char * name
 frame name for targetting More...
 
bool no_resize
 frame characteristics More...
 
browser_scrolling scrolling
 
bool border
 
colour border_colour
 
struct boxbox
 iframe parent box More...
 
struct browser_windowchildren
 [cols * rows] children More...
 
struct browser_windowparent
 
int iframe_count
 [iframe_count] iframes More...
 
struct browser_windowiframes
 
struct browser_windowfocus
 browser window child of root browser window which has input focus More...
 
uint64_t last_action
 Last time a link was followed in this window. More...
 
struct {
   struct browser_window *   bw
 
   bool   read_only
 
selection
 Current selection. More...
 
bool can_edit
 
struct jsheapjsheap
 current javascript context More...
 
struct {
   char *   text
 Current status bar text. More...
 
   int   text_len
 Length of the status::text buffer. More...
 
   int   match
 Number of times an idempotent status-set operation was performed. More...
 
   int   miss
 Number of times status was really updated. More...
 
status
 cache of the currently displayed status text. More...
 

Detailed Description

Browser window data.

Definition at line 96 of file browser_private.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Window characteristics.

Enumerator
BROWSER_WINDOW_NORMAL 
BROWSER_WINDOW_IFRAME 
BROWSER_WINDOW_FRAME 
BROWSER_WINDOW_FRAMESET 

Definition at line 215 of file browser_private.h.

Field Documentation

◆ border

bool browser_window::border

Definition at line 238 of file browser_private.h.

Referenced by browser_window_create(), and browser_window_create_iframes().

◆ border_colour

colour browser_window::border_colour

Definition at line 239 of file browser_private.h.

Referenced by browser_window_create_iframes().

◆ box

struct box* browser_window::box

◆ 

enum { ... } browser_window::browser_window_type

◆ bw

struct browser_window* browser_window::bw

Definition at line 260 of file browser_private.h.

Referenced by addbookmarks_button_clicked_cb(), ami_gui_new_blank_tab(), ami_handle_applib(), back_button_clicked_cb(), browser_window__get_contextual_content(), browser_window__handle_ssl_query_response(), browser_window__handle_userpass_response(), browser_window__reload_current_parameters(), browser_window_back_available(), browser_window_callback(), browser_window_can_search(), browser_window_can_select(), browser_window_check_throbber(), browser_window_console_log(), browser_window_content_ready(), browser_window_convert_to_download(), browser_window_create(), browser_window_create_frameset_internal(), browser_window_debug(), browser_window_debug_dump(), browser_window_destroy(), browser_window_destroy_iframes(), browser_window_destroy_internal(), browser_window_download(), browser_window_drop_file_at_point(), browser_window_drop_file_at_point_internal(), browser_window_exec(), browser_window_favicon_callback(), browser_window_find_target(), browser_window_find_target_internal(), browser_window_forward_available(), browser_window_frame_resize_start(), browser_window_get_cookie_count(), browser_window_get_drag_type(), browser_window_get_editor_flags(), browser_window_get_features(), browser_window_get_name(), browser_window_get_page_info_state(), browser_window_get_position(), browser_window_get_root(), browser_window_get_scale(), browser_window_get_scrollbar_type(), browser_window_get_selection(), browser_window_get_ssl_chain(), browser_window_initialise_common(), browser_window_invalidate_rect(), browser_window_is_frameset(), browser_window_key_press(), browser_window_mouse_click(), browser_window_mouse_click_internal(), browser_window_mouse_drag_end(), browser_window_mouse_track(), browser_window_mouse_track_internal(), browser_window_page_drag_start(), browser_window_recalculate_frameset_internal(), browser_window_recalculate_iframes(), browser_window_redraw(), browser_window_redraw_ready(), browser_window_reformat(), browser_window_refresh(), browser_window_refresh_url_bar(), browser_window_reload_available(), browser_window_remove_caret(), browser_window_resize_frame(), browser_window_resize_frames(), browser_window_schedule_reformat(), browser_window_scroll_at_point(), browser_window_scroll_at_point_internal(), browser_window_scroll_callback(), browser_window_set_drag_type(), browser_window_set_gadget_filename(), browser_window_set_name(), browser_window_set_pointer(), browser_window_set_position(), browser_window_set_scale(), browser_window_set_scale_internal(), browser_window_set_scroll(), browser_window_set_selection(), browser_window_show_certificates(), browser_window_show_cookies(), browser_window_start_throbber(), browser_window_stop(), browser_window_stop_available(), browser_window_stop_throbber(), browser_window_update_extent(), browser_window_update_favicon(), copy_button_clicked_cb(), cut_button_clicked_cb(), debugboxtree_button_clicked_cb(), debugdomtree_button_clicked_cb(), delete_button_clicked_cb(), fb_leftarrow_click(), fb_reload_click(), fb_rightarrow_click(), fb_stop_click(), fb_update_back_forward(), fb_url_enter(), forward_button_clicked_cb(), get_context_info(), gui_download_window_done(), gui_page_info_change(), HOOKF(), localhistory_button_clicked_cb(), main(), menu_open_url(), nsbeos_scaffolding_dispatch_event(), nsbeos_window_update_back_forward(), nsgtk_completion_match_select(), nsgtk_on_link_opentab_activate_menu(), nsgtk_on_link_openwin_activate_menu(), nsgtk_on_savelink_activate_menu(), nsgtk_saveas_dialog(), nsgtk_scaffolding_context_menu(), nsgtk_scaffolding_set_top_level(), nsgtk_scaffolding_update_edit_actions_sensitivity(), nsgtk_toolbar_page_info_change(), nsgtk_toolbar_throbber(), on_content_mouse_move(), openfile_button_clicked_cb(), paste_button_clicked_cb(), pdf_button_clicked_cb(), plaintext_button_clicked_cb(), preferences_button_clicked_cb(), print_button_clicked_cb(), reload_button_clicked_cb(), reloadstop_button_clicked_cb(), ro_gui_window_iconise(), ro_gui_window_menu_prepare(), ro_gui_window_menu_select(), ro_gui_window_paste_cb(), ro_gui_window_update_toolbar_buttons(), savepage_button_clicked_cb(), scaffolding_update_context(), scheduled_reformat(), selectall_button_clicked_cb(), textplain_redraw(), toggledebugging_button_clicked_cb(), toolbar_back_click(), toolbar_forward_click(), toolbar_home_click(), toolbar_navigate_to_url(), toolbar_reload_click(), toolbar_stop_click(), url_entry_activate_cb(), url_entry_icon_release_cb(), viewsource_button_clicked_cb(), websearch_entry_activate_cb(), window_close_search(), window_open_search(), zoomminus_button_clicked_cb(), zoomnormal_button_clicked_cb(), and zoomplus_button_clicked_cb().

◆ can_edit

bool browser_window::can_edit

◆ children

struct browser_window* browser_window::children

◆ cols

int browser_window::cols

◆ current

struct hlcache_handle* browser_window::current

content handle of current page favicon

Definition at line 136 of file browser_private.h.

Referenced by browser_window_destroy_internal(), and browser_window_favicon_callback().

◆ current_cert_chain

struct cert_chain* browser_window::current_cert_chain

The certificate chain for the current content.

Definition at line 111 of file browser_private.h.

Referenced by browser_window_content_ready(), browser_window_destroy_internal(), browser_window_get_ssl_chain(), and browser_window_show_certificates().

◆ current_content

struct hlcache_handle* browser_window::current_content

Content handle of page currently displayed which must have READY or DONE status or NULL for no content.

Definition at line 101 of file browser_private.h.

Referenced by browser_window__get_contextual_content(), browser_window__handle_error(), browser_window_access_url(), browser_window_callback(), browser_window_can_search(), browser_window_can_select(), browser_window_content_done(), browser_window_content_ready(), browser_window_create_frameset(), browser_window_create_iframes(), browser_window_debug(), browser_window_debug_dump(), browser_window_destroy_internal(), browser_window_drop_file_at_point_internal(), browser_window_exec(), browser_window_find_target(), browser_window_get_content(), browser_window_get_extents(), browser_window_get_page_info_state(), browser_window_get_selection(), browser_window_get_title(), browser_window_handle_scrollbars(), browser_window_has_content(), browser_window_history_get_thumbnail(), browser_window_history_go(), browser_window_invalidate_iframe(), browser_window_key_press(), browser_window_mouse_click_internal(), browser_window_mouse_track_internal(), browser_window_navigate(), browser_window_recalculate_frameset(), browser_window_redraw(), browser_window_redraw_ready(), browser_window_reformat(), browser_window_refresh(), browser_window_refresh_url_bar(), browser_window_reload(), browser_window_reload_available(), browser_window_scroll_at_point_internal(), browser_window_scroll_callback(), browser_window_search(), browser_window_search_clear(), browser_window_set_gadget_filename(), browser_window_set_pointer(), browser_window_set_scale_internal(), browser_window_set_selection(), browser_window_stop(), browser_window_stop_available(), browser_window_up_available(), browser_window_update(), and frag_scroll().

◆ current_parameters

struct browser_fetch_parameters browser_window::current_parameters

◆ download

bool browser_window::download

Current fetch is download.

Definition at line 197 of file browser_private.h.

◆ 

struct { ... } browser_window::drag

◆ failed

bool browser_window::failed

flag to indicate favicon fetch already failed which prevents infinite error looping.

Definition at line 148 of file browser_private.h.

Referenced by browser_window_favicon_callback(), and browser_window_update_favicon().

◆ 

struct { ... } browser_window::favicon

◆ focus

struct browser_window* browser_window::focus

◆ frag_id

lwc_string* browser_window::frag_id

◆ frame_height

struct frame_dimension browser_window::frame_height

◆ frame_width

struct frame_dimension browser_window::frame_width

◆ height

int browser_window::height

◆ history

struct history* browser_window::history

◆ history_add

bool browser_window::history_add

Add loading_content to the window history when it loads.

Definition at line 162 of file browser_private.h.

Referenced by browser_window_content_ready(), and navigate_internal_real().

◆ iframe_count

int browser_window::iframe_count

◆ iframes

struct browser_window* browser_window::iframes

◆ internal_nav

bool browser_window::internal_nav

◆ jsheap

struct jsheap* browser_window::jsheap

current javascript context

Definition at line 266 of file browser_private.h.

Referenced by browser_window_callback(), browser_window_destroy_internal(), and browser_window_initialise_common().

◆ last_action

uint64_t browser_window::last_action

Last time a link was followed in this window.

Definition at line 256 of file browser_private.h.

Referenced by browser_window_create(), browser_window_set_pointer(), and navigate_internal_real().

◆ loading

struct hlcache_handle* browser_window::loading

content handle for favicon which we started loading early

Definition at line 142 of file browser_private.h.

Referenced by browser_window_destroy_internal(), browser_window_favicon_callback(), browser_window_set_pointer(), and browser_window_update_favicon().

◆ loading_cert_chain

struct cert_chain* browser_window::loading_cert_chain

◆ loading_content

struct hlcache_handle* browser_window::loading_content

◆ loading_parameters

struct browser_fetch_parameters browser_window::loading_parameters

◆ margin_height

int browser_window::margin_height

Definition at line 230 of file browser_private.h.

Referenced by browser_window_create_iframes().

◆ margin_width

int browser_window::margin_width

Definition at line 229 of file browser_private.h.

Referenced by browser_window_create_iframes().

◆ match

int browser_window::match

Number of times an idempotent status-set operation was performed.

Definition at line 272 of file browser_private.h.

Referenced by browser_window_destroy_internal(), browser_window_get_page_info_state(), browser_window_initialise_common(), browser_window_set_status(), and browser_window_update_favicon().

◆ miss

int browser_window::miss

Number of times status was really updated.

Definition at line 273 of file browser_private.h.

Referenced by browser_window_destroy_internal(), browser_window_initialise_common(), and browser_window_set_status().

◆ name

char* browser_window::name

◆ no_resize

bool browser_window::no_resize

frame characteristics

Definition at line 236 of file browser_private.h.

Referenced by browser_window_create(), browser_window_create_iframes(), and browser_window_resize_frames().

◆ parent

struct browser_window* browser_window::parent

◆ read_only

bool browser_window::read_only

◆ refresh_interval

int browser_window::refresh_interval

Refresh interval (-1 if undefined)

Definition at line 200 of file browser_private.h.

Referenced by browser_window_callback(), browser_window_content_done(), browser_window_initialise_common(), and browser_window_refresh().

◆ resize_down

unsigned int browser_window::resize_down

Definition at line 193 of file browser_private.h.

Referenced by browser_window_resize_frame(), and browser_window_resize_frames().

◆ resize_left

unsigned int browser_window::resize_left

Frame resize directions for current frame resize drag.

Definition at line 190 of file browser_private.h.

Referenced by browser_window_resize_frame(), browser_window_resize_frames(), and browser_window_resolve_frame_dimension().

◆ resize_right

unsigned int browser_window::resize_right

Definition at line 191 of file browser_private.h.

Referenced by browser_window_resize_frame(), and browser_window_resize_frames().

◆ resize_up

unsigned int browser_window::resize_up

◆ rows

int browser_window::rows

◆ scale

float browser_window::scale

◆ scroll_x

struct scrollbar* browser_window::scroll_x

◆ scroll_y

struct scrollbar* browser_window::scroll_y

◆ scrolling

browser_scrolling browser_window::scrolling

◆ 

struct { ... } browser_window::selection

◆ start_scroll_x

int browser_window::start_scroll_x

Scroll offsets at start of current scroll draw.

Definition at line 186 of file browser_private.h.

Referenced by browser_window_mouse_track_internal(), and browser_window_page_drag_start().

◆ start_scroll_y

int browser_window::start_scroll_y

◆ start_x

int browser_window::start_x

Mouse position at start of current scroll drag.

Definition at line 182 of file browser_private.h.

Referenced by browser_window_mouse_track_internal(), browser_window_page_drag_start(), and browser_window_resize_frames().

◆ start_y

int browser_window::start_y

◆ 

struct { ... } browser_window::status

◆ text

char* browser_window::text

Current status bar text.

Definition at line 270 of file browser_private.h.

Referenced by browser_window_destroy_internal(), browser_window_initialise_common(), and browser_window_set_status().

◆ text_len

int browser_window::text_len

Length of the status::text buffer.

Definition at line 271 of file browser_private.h.

Referenced by browser_window_initialise_common(), and browser_window_set_status().

◆ throbbing

bool browser_window::throbbing

◆ type

browser_drag_type browser_window::type

◆ width

int browser_window::width

◆ window [1/2]

struct gui_window* browser_window::window

◆ window [2/2]

struct browser_window* browser_window::window

Current drag's browser window, when not in root bw.

Definition at line 179 of file browser_private.h.

◆ x

int browser_window::x

◆ y

int browser_window::y

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