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

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

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 | « app/gtk_dnd_util.cc ('k') | chrome/browser/gtk/tab_contents_drag_source.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.h
diff --git a/chrome/browser/gtk/tab_contents_drag_source.h b/chrome/browser/gtk/tab_contents_drag_source.h
index 65f0ba13977a39cf9038e9adaf64786b3bf86c53..423f895246f3ec9c305e90f8209a421a80c9e0b3 100644
--- a/chrome/browser/gtk/tab_contents_drag_source.h
+++ b/chrome/browser/gtk/tab_contents_drag_source.h
@@ -59,11 +59,10 @@ class TabContentsDragSource : public MessageLoopForUI::Observer {
static void OnDragEndThunk(GtkWidget* widget,
GdkDragContext* drag_context,
TabContentsDragSource* handler) {
- handler->OnDragEnd(drag_context, WebKit::WebDragOperationCopy);
- // TODO(snej): Pass actual operation instead of hardcoding copy
+ handler->OnDragEnd(drag_context, drag_context->action);
}
void OnDragEnd(GdkDragContext* drag_context,
- WebKit::WebDragOperation operation);
+ GdkDragAction operation);
static void OnDragDataGetThunk(GtkWidget* drag_widget,
GdkDragContext* context,
GtkSelectionData* selection_data,
« no previous file with comments | « app/gtk_dnd_util.cc ('k') | chrome/browser/gtk/tab_contents_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698