| Index: app/gtk_dnd_util.cc
|
| diff --git a/app/gtk_dnd_util.cc b/app/gtk_dnd_util.cc
|
| index 4d8694d7328a0f7e947f68ad9c408881e133dbe4..d6b0903be246db6d3b2d1359f722cd4b42da93c1 100644
|
| --- a/app/gtk_dnd_util.cc
|
| +++ b/app/gtk_dnd_util.cc
|
| @@ -226,4 +226,15 @@ bool ExtractURIList(GtkSelectionData* selection_data, std::vector<GURL>* urls) {
|
| return true;
|
| }
|
|
|
| +GdkDragAction WebDragOpToGdkDragAction(WebKit::WebDragOperationsMask op) {
|
| + GdkDragAction action = static_cast<GdkDragAction>(0);
|
| + if (op & WebKit::WebDragOperationCopy)
|
| + action = static_cast<GdkDragAction>(action | GDK_ACTION_COPY);
|
| + if (op & WebKit::WebDragOperationLink)
|
| + action = static_cast<GdkDragAction>(action | GDK_ACTION_LINK);
|
| + if (op & WebKit::WebDragOperationMove)
|
| + action = static_cast<GdkDragAction>(action | GDK_ACTION_MOVE);
|
| + return action;
|
| +}
|
| +
|
| } // namespace gtk_dnd_util
|
|
|