OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ |
7 #pragma once | |
8 | 7 |
9 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
10 | 9 |
11 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // Convenience methods for converting between web drag operations and the GDK | 15 // Convenience methods for converting between web drag operations and the GDK |
17 // equivalent. | 16 // equivalent. |
18 CONTENT_EXPORT GdkDragAction WebDragOpToGdkDragAction( | 17 CONTENT_EXPORT GdkDragAction WebDragOpToGdkDragAction( |
19 WebKit::WebDragOperationsMask op); | 18 WebKit::WebDragOperationsMask op); |
20 CONTENT_EXPORT WebKit::WebDragOperationsMask GdkDragActionToWebDragOp( | 19 CONTENT_EXPORT WebKit::WebDragOperationsMask GdkDragActionToWebDragOp( |
21 GdkDragAction action); | 20 GdkDragAction action); |
22 | 21 |
23 } // namespace content | 22 } // namespace content |
24 | 23 |
25 #endif // CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ | 24 #endif // CONTENT_BROWSER_WEB_CONTENTS_DRAG_UTILS_GTK_H_ |
OLD | NEW |