Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Side by Side Diff: app/gtk_dnd_util.h

Issue 1589015: GTK plumbing for dragend. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | app/gtk_dnd_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_GTK_DND_UTIL_H_
6 #define APP_GTK_DND_UTIL_H_ 6 #define APP_GTK_DND_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // |url| and |title|. Returns true if the url/title were safely extracted 71 // |url| and |title|. Returns true if the url/title were safely extracted
72 // and the url is valid. 72 // and the url is valid.
73 bool ExtractNamedURL(GtkSelectionData* selection_data, 73 bool ExtractNamedURL(GtkSelectionData* selection_data,
74 GURL* url, 74 GURL* url,
75 string16* title); 75 string16* title);
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 // Convenience method for converting between a web drag operation and the GDK 81 // Convenience methods for converting between web drag operations and the GDK
82 // equivalent. 82 // equivalent.
83 GdkDragAction WebDragOpToGdkDragAction(WebKit::WebDragOperationsMask op); 83 GdkDragAction WebDragOpToGdkDragAction(WebKit::WebDragOperationsMask op);
84 WebKit::WebDragOperationsMask GdkDragActionToWebDragOp(GdkDragAction action);
84 85
85 } // namespace gtk_dnd_util 86 } // namespace gtk_dnd_util
86 87
87 #endif // APP_GTK_DND_UTIL_H_ 88 #endif // APP_GTK_DND_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | app/gtk_dnd_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698