1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_
6 #define UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_
8 #include "base/basictypes.h"
9 #include "ui/base/ui_export.h"
13 class UI_EXPORT DragDropTypes {
22 enum DragEventSource {
23 DRAG_EVENT_SOURCE_MOUSE,
24 DRAG_EVENT_SOURCE_TOUCH,
28 static uint32 DragOperationToDropEffect(int drag_operation);
29 static int DropEffectToDragOperation(uint32 effect);
30 #elif defined(TOOLKIT_GTK)
31 static int DragOperationToGdkDragAction(int drag_operation);
32 static int GdkDragActionToDragOperation(int gdk_drag_action);
38 #endif // UI_BASE_DRAGDROP_DRAG_DROP_TYPES_H_