summaryrefslogtreecommitdiffstats
path: root/app/drag_drop_types.h
blob: 74472f88a57f76dc2af4ccd72bf30c85ec318768 (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
31
// 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_
#pragma once

#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_MACOSX)
  static int DragOperationToGdkDragAction(int drag_operation);
  static int GdkDragActionToDragOperation(int gdk_drag_action);
#endif
};

#endif  // APP_DRAG_DROP_TYPES_H_