summaryrefslogtreecommitdiff
path: root/monkey/browser.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-08 23:36:09 +0100
committerOle Loots <ole@monochrom.net>2013-01-08 23:36:09 +0100
commitb96d7afc771caf891a256adc82bd9e8a2dad9b7c (patch)
tree0c015f5c122fb8355bd86ad7e961433bdd46e33f /monkey/browser.c
parent13c71436ba6e81be6dc46e245bf1fff43e2e702c (diff)
parentd1dabbb0e28edc5614940c08d594957faa956daf (diff)
downloadnetsurf-b96d7afc771caf891a256adc82bd9e8a2dad9b7c.tar.gz
netsurf-b96d7afc771caf891a256adc82bd9e8a2dad9b7c.tar.bz2
Merge branch 'master' into mono/removing-windom-dependency
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