diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 17:35:32 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 17:35:32 +0000 |
commit | dac443791cffe0c7681fffe2e1a405418474f5d9 (patch) | |
tree | 78fb5d4e057db163cf272952d869a48f5bbac6f6 /chrome/browser/gtk/bookmark_utils_gtk.cc | |
parent | b314705cdac15c3603352c55932f95c1bdb1faa2 (diff) | |
download | chromium_src-dac443791cffe0c7681fffe2e1a405418474f5d9.zip chromium_src-dac443791cffe0c7681fffe2e1a405418474f5d9.tar.gz chromium_src-dac443791cffe0c7681fffe2e1a405418474f5d9.tar.bz2 |
GTK DND:
- Rearrange DND constants, create convenience functions
- (partially) implement drag onto home button
Note that the homepage is still hard-wired to the dev build splash page, so that it seems like this isn't working, but via debugging I ascertained that dragging a random file from the desktop onto the home button should successfully set that file as the homepage.
TEST=drag a lot of stuff all over the place (tabs, bookmarks, what have you), make sure nothing crashes
BUG=none
Review URL: http://codereview.chromium.org/147256
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_utils_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/bookmark_utils_gtk.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc index 4551794..9e49716 100644 --- a/chrome/browser/gtk/bookmark_utils_gtk.cc +++ b/chrome/browser/gtk/bookmark_utils_gtk.cc @@ -21,19 +21,6 @@ const int kBitsInAByte = 8; namespace bookmark_utils { -// Mime types for DnD. Used to synchronize across applications. -const char kInternalURIType[] = "application/x-chrome-bookmark-item"; - -// Table of the mime types that we accept with their options. -const GtkTargetEntry kTargetTable[] = { - { const_cast<char*>(kInternalURIType), - GTK_TARGET_SAME_APP, - dnd::X_CHROME_BOOKMARK_ITEM } - // TODO(erg): Add "text/uri-list" support. -}; - -const int kTargetTableSize = G_N_ELEMENTS(kTargetTable); - GdkPixbuf* GetFolderIcon() { ResourceBundle& rb = ResourceBundle::GetSharedInstance(); static GdkPixbuf* default_folder_icon = rb.GetPixbufNamed( |