NetSurf
|
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
#include "netsurf/browser_window.h"
#include "netsurf/content.h"
#include "netsurf/keypress.h"
#include "atari/gui.h"
#include "atari/misc.h"
#include "atari/rootwin.h"
#include "atari/clipboard.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
#include "atari/ctxmenu.h"
Go to the source code of this file.
Data Structures | |
struct | s_context_info |
Macros | |
#define | CNT_INVALID 0 |
#define | CNT_BROWSER 64 |
#define | CNT_HREF 128 |
#define | CNT_SELECTION 256 |
#define | CNT_INTERACTIVE 512 |
#define | CNT_IMG 1024 |
#define | POP_FIRST_ITEM POP_CTX_CUT_SEL |
#define | POP_LAST_ITEM POP_CTX_SAVE_LINK_AS |
Functions | |
bool | gui_window_get_scroll (struct gui_window *w, int *sx, int *sy) |
static struct s_context_info * | get_context_info (struct gui_window *gw, short mx, short my) |
static char * | get_tmpfilename (const char *prefix, const char *suffix) |
void | context_popup (struct gui_window *gw, short x, short y) |
Variables | |
struct s_context_info | ctxinfo |
#define POP_FIRST_ITEM POP_CTX_CUT_SEL |
#define POP_LAST_ITEM POP_CTX_SAVE_LINK_AS |
void context_popup | ( | struct gui_window * | gw, |
short | x, | ||
short | y | ||
) |
Definition at line 134 of file ctxmenu.c.
References atari_warn_user(), gui_window::browser, browser_window_access_url(), browser_window_create(), browser_window_get_content(), browser_window_key_press(), browser_window_navigate(), s_browser::bw, BW_CREATE_CLONE, BW_CREATE_HISTORY, BW_NAVIGATE_DOWNLOAD, s_context_info::ccdata, CNT_BROWSER, CNT_HREF, CNT_IMG, CNT_INTERACTIVE, content_get_source_data(), s_context_info::flags, get_context_info(), get_tmpfilename(), hlcache_handle_get_url(), browser_window_features::link, messages_get_errorcode(), NS_KEY_COPY_SELECTION, NS_KEY_CUT_SELECTION, NS_KEY_PASTE, NS_KEY_SELECT_ALL, NSERROR_OK, NSLOG, nsoption_charp, nsurl_access(), browser_window_features::object, POP_FIRST_ITEM, POP_LAST_ITEM, and scrap_txt_write().
Referenced by on_content_mouse_click().
|
static |
Definition at line 52 of file ctxmenu.c.
References gui_window::browser, BROWSER_AREA_CONTENT, browser_window_get_content(), browser_window_get_features(), browser_window_has_content(), browser_window::bw, s_browser::bw, s_context_info::ccdata, CNT_BROWSER, CNT_HREF, CNT_IMG, CNT_INTERACTIVE, CNT_SELECTION, content_get_type(), CONTENT_HTML, CONTENT_IMAGE, ctxinfo, s_context_info::flags, browser_window_features::form_features, gui_window_get_scroll(), browser_window_features::link, browser_window_features::object, gui_window::root, and window_get_grect().
Referenced by context_popup().
|
static |
Definition at line 106 of file ctxmenu.c.
References PATH_MAX.
Referenced by context_popup().
bool gui_window_get_scroll | ( | struct gui_window * | w, |
int * | sx, | ||
int * | sy | ||
) |
Definition at line 414 of file gui.c.
References gui_window::root, and window_get_scroll().
Referenced by get_context_info().
struct s_context_info ctxinfo |
Definition at line 50 of file ctxmenu.c.
Referenced by get_context_info().