1 // Copyright (c) 2012 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. 4 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ 7 8 #include <gtk/gtk.h> 9 10 #include "content/common/content_export.h" 11 #include "third_party/WebKit/public/web/WebDragOperation.h" 12 13 namespace content { 14 15 // Convenience methods for converting between web drag operations and the GDK 16 // equivalent. 17 CONTENT_EXPORT GdkDragAction WebDragOpToGdkDragAction( 18 blink::WebDragOperationsMask op); 19 CONTENT_EXPORT blink::WebDragOperationsMask GdkDragActionToWebDragOp( 20 GdkDragAction action); 21 22 } // namespace content 23 24 #endif // CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ 25