blob: 011d38697cbfa07453f91aa015ecc9f2ea7d8cf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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.
#ifndef APP_DRAG_DROP_TYPES_H_
#define APP_DRAG_DROP_TYPES_H_
#include "build/build_config.h"
#include "base/basictypes.h"
class DragDropTypes {
public:
enum DragOperation {
DRAG_NONE = 0,
DRAG_MOVE = 1 << 0,
DRAG_COPY = 1 << 1,
DRAG_LINK = 1 << 2
};
#if defined(OS_WIN)
static uint32 DragOperationToDropEffect(int drag_operation);
static int DropEffectToDragOperation(uint32 effect);
#elif defined(OS_LINUX)
static int DragOperationToGdkDragAction(int drag_operation);
static int GdkDragActionToDragOperation(int gdk_drag_action);
#endif
};
#endif // APP_DRAG_DROP_TYPES_H_
|