fix toBUFFER naming issue and cursor-changed parameter order

This commit is contained in:
Heilig Benedek 2016-08-01 02:13:31 +02:00
parent f3b723c9fa
commit bc7c5c567c
3 changed files with 6 additions and 6 deletions

View file

@ -1299,9 +1299,9 @@ 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);
info.image_scale_factor,
gfx::Size(info.custom_image.width(), info.custom_image.height()),
info.hotspot);
} else {
Emit("cursor-changed", CursorTypeToString(info));
}