summaryrefslogtreecommitdiff
path: root/monkey/browser.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-08 17:06:01 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-08 17:06:01 +0000
commit0bfc40618a7c9d40cacc5de3c34306c19ebaef1e (patch)
tree3c14d2668a5fd3f1c76220650832b81713575187 /monkey/browser.c
parent00a08e7b94fa7323248b73a75d859fa8e15a44eb (diff)
downloadnetsurf-0bfc40618a7c9d40cacc5de3c34306c19ebaef1e.tar.gz
netsurf-0bfc40618a7c9d40cacc5de3c34306c19ebaef1e.tar.bz2
Make Monkey front end build with new clipboard API.
Diffstat (limited to 'monkey/browser.c')
-rw-r--r--monkey/browser.c40
1 files changed, 17 insertions, 23 deletions
diff --git a/monkey/browser.c b/monkey/browser.c
index ddea08675..e6a57d00b 100644
--- a/monkey/browser.c
+++ b/monkey/browser.c
@@ -327,34 +327,28 @@ gui_clear_selection(struct gui_window *g)
{
}
-void
-gui_paste_from_clipboard(struct gui_window *g, int x, int y)
-{
-}
-
-bool
-gui_empty_clipboard(void)
-{
- return true;
-}
-
-bool
-gui_add_to_clipboard(const char *text, size_t length, bool space,
- const plot_font_style_t *fstyle)
+/**
+ * Core asks front end for clipboard contents.
+ *
+ * \param buffer UTF-8 text, allocated by front end, ownership yeilded to core
+ * \param length Byte length of UTF-8 text in buffer
+ */
+void gui_get_clipboard(char **buffer, size_t *length)
{
- return true;
}
-bool
-gui_commit_clipboard(void)
-{
- return true;
-}
-bool
-gui_copy_to_clipboard(struct selection *s)
+/**
+ * Core tells front end to put given text in clipboard
+ *
+ * \param buffer UTF-8 text, owned by core
+ * \param length Byte length of UTF-8 text in buffer
+ * \param styles Array of styles given to text runs, owned by core, or NULL
+ * \param n_styles Number of text run styles in array
+ */
+void gui_set_clipboard(const char *buffer, size_t length,
+ nsclipboard_styles styles[], int n_styles)
{
- return true;
}
void