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

Unified Diff: app/drag_drop_types_gtk.cc

Issue 6250014: Move more dnd related files to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/drag_drop_types.h ('k') | app/drag_drop_types_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/drag_drop_types_gtk.cc
===================================================================
--- app/drag_drop_types_gtk.cc (revision 71798)
+++ app/drag_drop_types_gtk.cc (working copy)
@@ -1,31 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "app/drag_drop_types.h"
-
-#include <gtk/gtk.h>
-
-// static
-int DragDropTypes::DragOperationToGdkDragAction(int drag_operation) {
- int gdk_drag_action = 0;
- if (drag_operation & DRAG_MOVE)
- gdk_drag_action |= GDK_ACTION_MOVE;
- if (drag_operation & DRAG_COPY)
- gdk_drag_action |= GDK_ACTION_COPY;
- if (drag_operation & DRAG_LINK)
- gdk_drag_action |= GDK_ACTION_LINK;
- return gdk_drag_action;
-}
-
-// static
-int DragDropTypes::GdkDragActionToDragOperation(int gdk_drag_action) {
- int drag_operation = DRAG_NONE;
- if (gdk_drag_action & GDK_ACTION_COPY)
- drag_operation |= DRAG_COPY;
- if (gdk_drag_action & GDK_ACTION_MOVE)
- drag_operation |= DRAG_MOVE;
- if (gdk_drag_action & GDK_ACTION_LINK)
- drag_operation |= DRAG_LINK;
- return drag_operation;
-}
« no previous file with comments | « app/drag_drop_types.h ('k') | app/drag_drop_types_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698