summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/drag_utils_gtk.h
blob: cc8122baa0f9b8e06a968e0bfab6bdf8bda415eb (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
// Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_
#define CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_

#include <gtk/gtk.h>

#include "content/common/content_export.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"

namespace content {

// Convenience methods for converting between web drag operations and the GDK
// equivalent.
CONTENT_EXPORT GdkDragAction WebDragOpToGdkDragAction(
    WebKit::WebDragOperationsMask op);
CONTENT_EXPORT WebKit::WebDragOperationsMask GdkDragActionToWebDragOp(
    GdkDragAction action);

}  // namespace content

#endif  // CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_