NetSurf
Functions | Variables
cookies.c File Reference
#include <assert.h>
#include "netsurf/inttypes.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "netsurf/mouse.h"
#include "netsurf/plotters.h"
#include "desktop/cookie_manager.h"
#include "atari/treeview.h"
#include "atari/cookies.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
Include dependency graph for cookies.c:

Go to the source code of this file.

Functions

static nserror atari_cookie_manager_init_phase2 (struct core_window *cw)
 
static void atari_cookie_manager_finish (struct core_window *cw)
 
static void atari_cookie_manager_keypress (struct core_window *cw, uint32_t ucs4)
 
static void atari_cookie_manager_mouse_action (struct core_window *cw, browser_mouse_state mouse, int x, int y)
 
static void atari_cookie_manager_draw (struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
 
static short handle_event (GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
 
void atari_cookie_manager_init (void)
 
void atari_cookie_manager_open (void)
 
void atari_cookie_manager_close (void)
 
void atari_cookie_manager_destroy (void)
 
void atari_cookie_manager_redraw (void)
 

Variables

GRECT desk_area
 
struct atari_cookie_manager_s atari_cookie_manager
 
static struct atari_treeview_callbacks atari_cookie_manager_treeview_callbacks
 

Function Documentation

◆ atari_cookie_manager_close()

void atari_cookie_manager_close ( void  )

Definition at line 191 of file cookies.c.

References atari_cookie_manager, atari_treeview_close(), and atari_cookie_manager_s::tv.

Referenced by atari_cookie_manager_destroy(), and handle_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_cookie_manager_destroy()

void atari_cookie_manager_destroy ( void  )

Definition at line 197 of file cookies.c.

References atari_cookie_manager, atari_cookie_manager_close(), atari_treeview_delete(), atari_treeview_is_open(), atari_cookie_manager_s::init, NSLOG, atari_cookie_manager_s::tv, and atari_cookie_manager_s::window.

Referenced by gui_quit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_cookie_manager_draw()

static void atari_cookie_manager_draw ( struct core_window *  cw,
int  x,
int  y,
struct rect clip,
const struct redraw_context ctx 
)
static

Definition at line 78 of file cookies.c.

References clip(), and cookie_manager_redraw().

Here is the call graph for this function:

◆ atari_cookie_manager_finish()

static void atari_cookie_manager_finish ( struct core_window *  cw)
static

Definition at line 70 of file cookies.c.

References cookie_manager_fini(), and NSLOG.

Here is the call graph for this function:

◆ atari_cookie_manager_init()

void atari_cookie_manager_init ( void  )

Definition at line 130 of file cookies.c.

References atari_cookie_manager, atari_cookie_manager_treeview_callbacks, atari_treeview_create(), ATARI_TREEVIEW_WIDGETS, desk_area, atari_cookie_manager_s::init, messages_get(), NSLOG, atari_cookie_manager_s::tv, and atari_cookie_manager_s::window.

Referenced by gui_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_cookie_manager_init_phase2()

static nserror atari_cookie_manager_init_phase2 ( struct core_window *  cw)
static

Definition at line 62 of file cookies.c.

References cookie_manager_init(), and NSLOG.

Here is the call graph for this function:

◆ atari_cookie_manager_keypress()

static void atari_cookie_manager_keypress ( struct core_window *  cw,
uint32_t  ucs4 
)
static

Definition at line 88 of file cookies.c.

References cookie_manager_keypress(), and NSLOG.

Here is the call graph for this function:

◆ atari_cookie_manager_mouse_action()

static void atari_cookie_manager_mouse_action ( struct core_window *  cw,
browser_mouse_state  mouse,
int  x,
int  y 
)
static

Definition at line 96 of file cookies.c.

References cookie_manager_mouse_action().

Here is the call graph for this function:

◆ atari_cookie_manager_open()

void atari_cookie_manager_open ( void  )

Definition at line 171 of file cookies.c.

References atari_cookie_manager, atari_treeview_is_open(), atari_treeview_open(), desk_area, atari_cookie_manager_s::init, atari_cookie_manager_s::tv, and atari_cookie_manager_s::window.

Referenced by menu_cookies().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atari_cookie_manager_redraw()

void atari_cookie_manager_redraw ( void  )

Definition at line 216 of file cookies.c.

References atari_cookie_manager, atari_treeview_redraw(), and atari_cookie_manager_s::tv.

Here is the call graph for this function:

◆ handle_event()

static short handle_event ( GUIWIN *  win,
EVMULT_OUT *  ev_out,
short  msg[8] 
)
static

Definition at line 105 of file cookies.c.

References atari_cookie_manager_close(), and NSLOG.

Here is the call graph for this function:

Variable Documentation

◆ atari_cookie_manager

struct atari_cookie_manager_s atari_cookie_manager

◆ atari_cookie_manager_treeview_callbacks

struct atari_treeview_callbacks atari_cookie_manager_treeview_callbacks
static
Initial value:
= {
.gemtk_user_func = handle_event
}
static nserror atari_cookie_manager_init_phase2(struct core_window *cw)
Definition: cookies.c:62
static void atari_cookie_manager_finish(struct core_window *cw)
Definition: cookies.c:70
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
Definition: cookies.c:105
static void atari_cookie_manager_mouse_action(struct core_window *cw, browser_mouse_state mouse, int x, int y)
Definition: cookies.c:96
static void atari_cookie_manager_draw(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
Definition: cookies.c:78
static void atari_cookie_manager_keypress(struct core_window *cw, uint32_t ucs4)
Definition: cookies.c:88

Definition at line 51 of file cookies.c.

Referenced by atari_cookie_manager_init().

◆ desk_area

GRECT desk_area
extern

Definition at line 79 of file gui.c.

Referenced by atari_cookie_manager_init(), and atari_cookie_manager_open().