Send some more data with the cursor-changed event
This commit is contained in:
parent
d0bda76a2d
commit
3a1285aeac
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue