Linux: Fix compile errors.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@646 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-05-23 21:51:09 +00:00
parent 8d5bad43d3
commit 53e4ce626d
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ void WebDragSource::StartDragging(const WebDropData& drop_data,
event);
if (!image.isNull()) {
const SkBitmap& bitmap = image.getSkBitmap();
GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&bitmap);
GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap);
gtk_drag_set_icon_pixbuf(context, pixbuf, image_offset.x, image_offset.y);
g_object_unref(pixbuf);
} else {

View File

@ -202,7 +202,9 @@ void WebDropTarget::OnDragDataReceived(GtkWidget* widget,
FilePath file_path;
if (url.SchemeIs("file") &&
net::FileURLToFilePath(url, &file_path)) {
drop_data_->filenames.push_back(UTF8ToUTF16(file_path.value()));
drop_data_->filenames.push_back(
WebDropData::FileInfo(UTF8ToUTF16(file_path.value()),
string16()));
// This is a hack. Some file managers also populate text/plain with
// a file URL when dragging files, so we clear it to avoid exposing
// it to the web content.