| OLD | NEW |
| 1 // Copyright (c) 2009 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 APP_GTK_DND_UTIL_H_ | 5 #ifndef UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
| 6 #define APP_GTK_DND_UTIL_H_ | 6 #define UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 | 14 |
| 15 class GURL; | 15 class GURL; |
| 16 | 16 |
| 17 namespace gtk_dnd_util { | 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, |
| 23 CHROME_BOOKMARK_ITEM = 1 << 1, | 23 CHROME_BOOKMARK_ITEM = 1 << 1, |
| 24 CHROME_WEBDROP_FILE_CONTENTS = 1 << 2, | 24 CHROME_WEBDROP_FILE_CONTENTS = 1 << 2, |
| 25 CHROME_NAMED_URL = 1 << 3, | 25 CHROME_NAMED_URL = 1 << 3, |
| 26 | 26 |
| 27 // Standard types. | 27 // Standard types. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Extracts data of type TEXT_URI_LIST from |selection_data| into |urls|. | 77 // Extracts data of type TEXT_URI_LIST from |selection_data| into |urls|. |
| 78 bool ExtractURIList(GtkSelectionData* selection_data, | 78 bool ExtractURIList(GtkSelectionData* selection_data, |
| 79 std::vector<GURL>* urls); | 79 std::vector<GURL>* urls); |
| 80 | 80 |
| 81 // Extracts a Netscape URL (url\ntitle) from |selection_data|. | 81 // Extracts a Netscape URL (url\ntitle) from |selection_data|. |
| 82 bool ExtractNetscapeURL(GtkSelectionData* selection_data, | 82 bool ExtractNetscapeURL(GtkSelectionData* selection_data, |
| 83 GURL* url, | 83 GURL* url, |
| 84 string16* title); | 84 string16* title); |
| 85 | 85 |
| 86 } // namespace gtk_dnd_util | 86 } // namespace ui |
| 87 | 87 |
| 88 #endif // APP_GTK_DND_UTIL_H_ | 88 #endif // UI_BASE_DRAGDROP_GTK_DND_UTIL_H_ |
| OLD | NEW |