summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2014-01-15 12:28:55 +0000
committerVincent Sanders <vince@netsurf-browser.org>2014-01-15 12:28:55 +0000
commit68eaec5cb4208ee80e7c0610361405fd01fc1b69 (patch)
treeaea90291a5f6fe6e8848644d9fe712201d01eaf0 /beos
parent0075eab1949e4de071b3649c68ba402b8ffce6fb (diff)
downloadnetsurf-68eaec5cb4208ee80e7c0610361405fd01fc1b69.tar.gz
netsurf-68eaec5cb4208ee80e7c0610361405fd01fc1b69.tar.bz2
complete move of remaining core gui functions
Diffstat (limited to 'beos')
-rw-r--r--beos/gui.cpp24
-rw-r--r--beos/window.h3
2 files changed, 11 insertions, 16 deletions
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 */