OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ | 5 #ifndef UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
6 #define UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ | 6 #define UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "ui/base/ui_export.h" | 13 #include "ui/base/ui_export.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 // Registry of all internal int codes for drag and drop. | 19 // Registry of all internal int codes for drag and drop. |
20 enum { | 20 enum { |
21 // Intra-application types. | 21 // Intra-application types. |
22 CHROME_TAB = 1 << 0, | 22 CHROME_TAB = 1 << 0, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 std::vector<GURL>* urls); | 83 std::vector<GURL>* urls); |
84 | 84 |
85 // Extracts a Netscape URL (url\ntitle) from |selection_data|. | 85 // Extracts a Netscape URL (url\ntitle) from |selection_data|. |
86 UI_EXPORT bool ExtractNetscapeURL(GtkSelectionData* selection_data, | 86 UI_EXPORT bool ExtractNetscapeURL(GtkSelectionData* selection_data, |
87 GURL* url, | 87 GURL* url, |
88 string16* title); | 88 string16* title); |
89 | 89 |
90 } // namespace ui | 90 } // namespace ui |
91 | 91 |
92 #endif // UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ | 92 #endif // UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
OLD | NEW |