|
NetSurf
|
Implementation of win32 cookie manager. More...
#include <stdint.h>#include <stdlib.h>#include <windows.h>#include "utils/log.h"#include "utils/nsoption.h"#include "netsurf/keypress.h"#include "netsurf/plotters.h"#include "desktop/cookie_manager.h"#include "windows/plot.h"#include "windows/corewindow.h"#include "windows/cookies.h"#include "windows/gui.h"Go to the source code of this file.
Data Structures | |
| struct | nsw32_cookie_window |
Functions | |
| static nserror | nsw32_cookie_key (struct nsw32_corewindow *nsw32_cw, uint32_t nskey) |
| callback for keypress on cookie window More... | |
| static nserror | nsw32_cookie_mouse (struct nsw32_corewindow *nsw32_cw, browser_mouse_state mouse_state, int x, int y) |
| callback for mouse action on cookie window More... | |
| static nserror | nsw32_cookie_draw (struct nsw32_corewindow *nsw32_cw, int scrollx, int scrolly, struct rect *r) |
| callback on draw event for cookie window More... | |
| static nserror | nsw32_cookie_close (struct nsw32_corewindow *nsw32_cw) |
| callback on close event for cookie window More... | |
| static nserror | nsw32_cookie_init (HINSTANCE hInstance) |
| Creates the window for the cookie tree. More... | |
| nserror | nsw32_cookies_present (const char *search_term) |
| make the cookie window visible. More... | |
| nserror | nsw32_cookies_finalise (void) |
| Free any resources allocated for the cookie window. More... | |
Variables | |
| static struct nsw32_cookie_window * | cookie_window = NULL |
Implementation of win32 cookie manager.
Definition in file cookies.c.
|
static |
callback on close event for cookie window
| nsw32_cw | The nsw32 core window structure. |
Definition at line 117 of file cookies.c.
References nsw32_corewindow::hWnd, NSERROR_OK, and ShowWindow.
Referenced by nsw32_cookie_init().
|
static |
callback on draw event for cookie window
| nsw32_cw | The nsw32 core window structure. |
| scrollx | The horizontal scroll offset. |
| scrolly | The vertical scroll offset. |
| r | The rectangle of the window that needs updating. |
Definition at line 93 of file cookies.c.
References cookie_manager_redraw(), redraw_context::interactive, NSERROR_OK, and win_plotters.
Referenced by nsw32_cookie_init().
|
static |
Creates the window for the cookie tree.
| hInstance | The application instance |
Definition at line 131 of file cookies.c.
References nsw32_corewindow::close, cookie_manager_init(), cookie_window, nsw32_cookie_window::core, nsw32_corewindow::draw, nsw32_corewindow::key, nsw32_corewindow::mouse, NSERROR_NOMEM, NSERROR_OK, nsw32_cookie_close(), nsw32_cookie_draw(), nsw32_cookie_key(), nsw32_cookie_mouse(), nsw32_corewindow_init(), and nsw32_corewindow::title.
Referenced by nsw32_cookies_present().
|
static |
callback for keypress on cookie window
| nsw32_cw | The nsw32 core window structure. |
| nskey | The netsurf key code |
Definition at line 54 of file cookies.c.
References cookie_manager_keypress(), NSERROR_NOT_IMPLEMENTED, and NSERROR_OK.
Referenced by nsw32_cookie_init().
|
static |
callback for mouse action on cookie window
| nsw32_cw | The nsw32 core window structure. |
| mouse_state | netsurf mouse state on event |
| x | location of event |
| y | location of event |
Definition at line 73 of file cookies.c.
References cookie_manager_mouse_action(), and NSERROR_OK.
Referenced by nsw32_cookie_init().
| nserror nsw32_cookies_finalise | ( | void | ) |
Free any resources allocated for the cookie window.
Definition at line 189 of file cookies.c.
References cookie_manager_fini(), cookie_window, nsw32_cookie_window::core, nsw32_corewindow::hWnd, NSERROR_OK, and nsw32_corewindow_fini().
| nserror nsw32_cookies_present | ( | const char * | search_term | ) |
make the cookie window visible.
Definition at line 173 of file cookies.c.
References cookie_manager_set_search_string(), cookie_window, nsw32_cookie_window::core, hinst, nsw32_corewindow::hWnd, NSERROR_OK, nsw32_cookie_init(), and ShowWindow.
Referenced by nsws_window_command().
|
static |
Definition at line 44 of file cookies.c.
Referenced by nsw32_cookie_init(), nsw32_cookies_finalise(), and nsw32_cookies_present().