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

Unified Diff: chrome/browser/gtk/gtk_dnd_util.h

Issue 159419: Correctly update drag status for drags over renderer. This makes things look ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: do what Brett says Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/gtk_dnd_util.h
===================================================================
--- chrome/browser/gtk/gtk_dnd_util.h (revision 21718)
+++ chrome/browser/gtk/gtk_dnd_util.h (working copy)
@@ -21,6 +21,8 @@
TEXT_PLAIN = 1 << 4,
TEXT_URI_LIST = 1 << 5,
TEXT_HTML = 1 << 6,
+
+ INVALID_TARGET = 1 << 7,
};
// Get the atom for a given target (of the above enum type). Will return NULL
@@ -35,13 +37,18 @@
// of the client code to do the right thing.
static GtkTargetList* GetTargetListFromCodeMask(int code_mask);
- // Set the drag target list for |dest| or |source| with the target list that
+ // Set the drag target list for |source| with the target list that
// corresponds to |code_mask|.
- static void SetDestTargetListFromCodeMask(GtkWidget* dest, int code_mask);
static void SetSourceTargetListFromCodeMask(GtkWidget* source, int code_mask);
+ // Set the accepted targets list for |dest|. The |target_codes| array should
+ // be sorted in preference order and should be terminated with 0.
+ static void SetDestTargetList(GtkWidget* dest, const int* target_codes);
+
private:
GtkDndUtil();
+
+ static void AddTargetToList(GtkTargetList* targets, int target_code);
};
#endif // CHROME_BROWSER_GTK_GTK_DND_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698