summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_tree_model.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:15:33 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:15:33 +0000
commite5f72c76f42ca9163a6691191ae0b1f471e81952 (patch)
tree9c7b26bedda7d4eaa5fa2f645ddd177f83636e6e /chrome/browser/gtk/bookmark_tree_model.cc
parentb7007b63f6e05341f9bdaec7ff08611ed8da3375 (diff)
downloadchromium_src-e5f72c76f42ca9163a6691191ae0b1f471e81952.zip
chromium_src-e5f72c76f42ca9163a6691191ae0b1f471e81952.tar.gz
chromium_src-e5f72c76f42ca9163a6691191ae0b1f471e81952.tar.bz2
Implement some drag-n-drop for the bookmark manager.
Factor out shared code into bookmark_utils_gtk.*. Fix a leak with toolbar button dragging. BUG=13110 TEST=Added extra DCHECKs. Also, you can drag between the right half of the bookmark manager and the bookmark bar with no crashes. Review URL: http://codereview.chromium.org/119220 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_tree_model.cc')
-rw-r--r--chrome/browser/gtk/bookmark_tree_model.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/chrome/browser/gtk/bookmark_tree_model.cc b/chrome/browser/gtk/bookmark_tree_model.cc
index 244a138..1b5f4de 100644
--- a/chrome/browser/gtk/bookmark_tree_model.cc
+++ b/chrome/browser/gtk/bookmark_tree_model.cc
@@ -9,9 +9,7 @@
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
-#include "grit/app_resources.h"
-#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
+#include "chrome/browser/gtk/bookmark_utils_gtk.h"
namespace {
@@ -170,18 +168,4 @@ std::wstring GetTitleFromTreeIter(GtkTreeModel* model, GtkTreeIter* iter) {
return ret_val;
}
-GdkPixbuf* GetFolderIcon() {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- static GdkPixbuf* default_folder_icon = rb.GetPixbufNamed(
- IDR_BOOKMARK_BAR_FOLDER);
- return default_folder_icon;
-}
-
-GdkPixbuf* GetDefaultFavicon() {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- static GdkPixbuf* default_bookmark_icon = rb.GetPixbufNamed(
- IDR_DEFAULT_FAVICON);
- return default_bookmark_icon;
-}
-
} // namespace bookmark_utils