From 147f2bd08aa48ba6a4f945e28db05b378ab85a13 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 8 Jan 2013 16:53:00 +0000 Subject: Remove content_msg for PASTE, since it doesn't need a gui_window to get the buffer from the front end now. --- content/content.h | 3 +-- desktop/browser.c | 6 ------ render/html.c | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/content/content.h b/content/content.h index 649f54dfa..7781ba9b8 100644 --- a/content/content.h +++ b/content/content.h @@ -78,8 +78,7 @@ typedef enum { CONTENT_MSG_SCROLL, /**< Request to scroll content */ CONTENT_MSG_DRAGSAVE, /**< Allow drag saving of content */ CONTENT_MSG_SAVELINK, /**< Allow URL to be saved */ - CONTENT_MSG_POINTER, /**< Wants a specific mouse pointer set */ - CONTENT_MSG_PASTE /**< Inform that content wants clipboard paste */ + CONTENT_MSG_POINTER /**< Wants a specific mouse pointer set */ } content_msg; /** RFC5988 metadata link */ diff --git a/desktop/browser.c b/desktop/browser.c index 6262f2453..6a1688192 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1545,12 +1545,6 @@ nserror browser_window_callback(hlcache_handle *c, browser_window_set_pointer(bw, event->data.pointer); break; - case CONTENT_MSG_PASTE: - /* Content wants a clipboard paste */ - gui_paste_from_clipboard(bw->window, - event->data.paste.x, event->data.paste.y); - break; - default: assert(0); } diff --git a/render/html.c b/render/html.c index 19ea5a9d0..3e26928fd 100644 --- a/render/html.c +++ b/render/html.c @@ -1302,7 +1302,6 @@ html_object_callback(hlcache_handle *object, case CONTENT_MSG_SAVELINK: case CONTENT_MSG_POINTER: - case CONTENT_MSG_PASTE: /* These messages are for browser window layer. * we're not interested, so pass them on. */ content_broadcast(&c->base, event->type, event->data); -- cgit v1.2.3