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 aac5fb0377
commit bc9adcd5ca
3 changed files with 6 additions and 6 deletions

View file

@ -1322,9 +1322,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));
}