Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4446)

Unified Diff: chrome/browser/gtk/tab_contents_drag_source.cc

Issue 1589015: GTK plumbing for dragend. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/tab_contents_drag_source.h ('k') | chrome/browser/tab_contents/web_drag_dest_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tab_contents_drag_source.cc
diff --git a/chrome/browser/gtk/tab_contents_drag_source.cc b/chrome/browser/gtk/tab_contents_drag_source.cc
index c0c9c7218d7b5cdcf06fca770b465415cb20a1fa..fc5ffd5c78e0e3070a326e0c643c5d08b902c282 100644
--- a/chrome/browser/gtk/tab_contents_drag_source.cc
+++ b/chrome/browser/gtk/tab_contents_drag_source.cc
@@ -321,7 +321,7 @@ void TabContentsDragSource::OnDragBegin(GdkDragContext* drag_context) {
}
void TabContentsDragSource::OnDragEnd(GdkDragContext* drag_context,
- WebDragOperation operation) {
+ GdkDragAction action) {
MessageLoopForUI::current()->RemoveObserver(this);
if (!download_url_.is_empty()) {
@@ -336,7 +336,8 @@ void TabContentsDragSource::OnDragEnd(GdkDragContext* drag_context,
if (tab_contents()->render_view_host()) {
tab_contents()->render_view_host()->DragSourceEndedAt(
- client.x(), client.y(), root.x(), root.y(), operation);
+ client.x(), client.y(), root.x(), root.y(),
+ gtk_dnd_util::GdkDragActionToWebDragOp(action));
}
}
« no previous file with comments | « chrome/browser/gtk/tab_contents_drag_source.h ('k') | chrome/browser/tab_contents/web_drag_dest_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698