From 68eaec5cb4208ee80e7c0610361405fd01fc1b69 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 15 Jan 2014 12:28:55 +0000 Subject: complete move of remaining core gui functions --- beos/gui.cpp | 24 ++++++++---------------- beos/window.h | 3 +++ 2 files changed, 11 insertions(+), 16 deletions(-) (limited to 'beos') diff --git a/beos/gui.cpp b/beos/gui.cpp index 45a0e6bc7..33337d8ff 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -346,7 +346,7 @@ static int32 bapp_thread(void *arg) return 0; } -nsurl *gui_get_resource_url(const char *path) +static nsurl *gui_get_resource_url(const char *path) { nsurl *url = NULL; BString u("rsrc:///"); @@ -784,13 +784,6 @@ static void gui_quit(void) } - -void gui_create_form_select_menu(struct browser_window *bw, - struct form_control *control) -{ - CALLED(); -} - /** * Send the source of a content to a text editor. */ @@ -888,7 +881,7 @@ void nsbeos_gui_view_source(struct hlcache_handle *content) * Broadcast an URL that we can't handle. */ -void gui_launch_url(const char *url) +static void gui_launch_url(const char *url) { status_t status; // try to open it as an URI @@ -949,13 +942,6 @@ void die(const char * const error) exit(EXIT_FAILURE); } -void gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs, - unsigned long num, nserror (*cb)(bool proceed, void *pw), - void *cbpw) -{ - CALLED(); -} - static void nsbeos_create_ssl_verify_window(struct browser_window *bw, hlcache_handle *c, const struct ssl_cert_info *certs, unsigned long num) @@ -1076,6 +1062,12 @@ bool path_add_part(char *path, int length, const char *newpart) static struct gui_table beos_gui_table = { .poll = gui_poll, .quit = gui_quit, + + .get_resource_url = gui_get_resource_url, + .launch_url = gui_launch_url, + + .get_clipboard = gui_get_clipboard, + .set_clipboard = gui_set_clipboard, }; diff --git a/beos/window.h b/beos/window.h index 4bd38de4e..8e98841c7 100644 --- a/beos/window.h +++ b/beos/window.h @@ -62,4 +62,7 @@ void nsbeos_window_destroy_browser(struct gui_window *g); struct browser_window *nsbeos_get_browser_window(struct gui_window *g); +void gui_get_clipboard(char **buffer, size_t *length); +void gui_set_clipboard(const char *buffer, size_t length, nsclipboard_styles styles[], int n_styles); + #endif /* NETSURF_BEOS_WINDOW_H */ -- cgit v1.2.3