Remove content_msg for PASTE, since it doesn't need a gui_window to get the buffer from the front end now.

This commit is contained in:
Michael Drake 2013-01-08 16:53:00 +00:00
parent e93fae7f2d
commit 147f2bd08a
3 changed files with 1 additions and 9 deletions

View File

@ -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 */

View File

@ -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);
}

View File

@ -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);