diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-14 23:31:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-14 23:31:54 +0000 |
commit | 0075eab1949e4de071b3649c68ba402b8ffce6fb (patch) | |
tree | 9eddbda0fba82159038811dcfff763285ccde925 /framebuffer | |
parent | 667d4a0a4938e1bfe54eb5b56cd4313b6579534d (diff) | |
download | netsurf-0075eab1949e4de071b3649c68ba402b8ffce6fb.tar.gz netsurf-0075eab1949e4de071b3649c68ba402b8ffce6fb.tar.bz2 |
move remaining gui operations to table
Diffstat (limited to 'framebuffer')
-rw-r--r-- | framebuffer/clipboard.c | 3 | ||||
-rw-r--r-- | framebuffer/clipboard.h | 26 | ||||
-rw-r--r-- | framebuffer/findfile.h | 2 | ||||
-rw-r--r-- | framebuffer/gui.c | 25 |
4 files changed, 33 insertions, 23 deletions
diff --git a/framebuffer/clipboard.c b/framebuffer/clipboard.c index 46a1bb018..4f9831340 100644 --- a/framebuffer/clipboard.c +++ b/framebuffer/clipboard.c @@ -26,6 +26,7 @@ #include "desktop/browser.h" #include "desktop/gui.h" #include "framebuffer/gui.h" +#include "framebuffer/clipboard.h" #include "utils/log.h" @@ -36,8 +37,6 @@ static struct gui_clipboard { } gui_clipboard; - - /** * Core asks front end for clipboard contents. * diff --git a/framebuffer/clipboard.h b/framebuffer/clipboard.h new file mode 100644 index 000000000..bc71a5565 --- /dev/null +++ b/framebuffer/clipboard.h @@ -0,0 +1,26 @@ +/* + * Copyright 2008 Vincent Sanders <vince@simtec.co.uk> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NETSURF_FB_CLIPBOARD_H +#define NETSURF_FB_CLIPBOARD_H + +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 diff --git a/framebuffer/findfile.h b/framebuffer/findfile.h index 1f3db6eb1..130bd3eb4 100644 --- a/framebuffer/findfile.h +++ b/framebuffer/findfile.h @@ -29,4 +29,6 @@ extern char **respaths; */ char **fb_init_resource(const char *resource_path); +nsurl *gui_get_resource_url(const char *path); + #endif /* NETSURF_FB_FINDFILE_H */ diff --git a/framebuffer/gui.c b/framebuffer/gui.c index c71872067..8b90b52f7 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -54,6 +54,7 @@ #include "framebuffer/findfile.h" #include "framebuffer/image_data.h" #include "framebuffer/font.h" +#include "framebuffer/clipboard.h" #include "content/urldb.h" #include "desktop/local_history.h" @@ -1767,27 +1768,6 @@ gui_window_remove_caret(struct gui_window *g) } -void -gui_create_form_select_menu(struct browser_window *bw, - struct form_control *control) -{ -} - -void -gui_launch_url(const char *url) -{ -} - -void -gui_cert_verify(nsurl *url, - const struct ssl_cert_info *certs, - unsigned long num, - nserror (*cb)(bool proceed, void *pw), - void *cbpw) -{ - cb(false, cbpw); -} - static struct gui_window_table framebuffer_gui_window_table = { .create = gui_window_create, .destroy = gui_window_destroy, @@ -1810,6 +1790,9 @@ static struct gui_window_table framebuffer_gui_window_table = { static struct gui_table framebuffer_gui_table = { .poll = gui_poll, .quit = gui_quit, + .get_resource_url = gui_get_resource_url, + .get_clipboard = gui_get_clipboard, + .set_clipboard = gui_set_clipboard, .window = &framebuffer_gui_window_table, }; |