Send some more data with the cursor-changed event

This commit is contained in:
Heilig Benedek 2016-07-31 05:11:56 +02:00
parent d0bda76a2d
commit 3a1285aeac

View file

@ -1336,6 +1336,8 @@ void WebContents::OnCursorChange(const content::WebCursor& cursor) {
if (cursor.IsCustom()) {
Emit("cursor-changed", CursorTypeToString(info),
gfx::Image::CreateFrom1xBitmap(info.custom_image),
gfx::Rect(info.custom_image.width(), info.custom_image.height()),
info.hotspot,
info.image_scale_factor);
} else {
Emit("cursor-changed", CursorTypeToString(info));