diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 19:16:59 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 19:16:59 +0000 |
commit | a1e071118b7ed757f2c975a8fe188fdbe80fcdd1 (patch) | |
tree | bbceb7d5265f89f5f9598658860ca775e0bdded6 /chrome/browser/gtk/toolbar_star_toggle_gtk.cc | |
parent | 85408b7c5c652979acaf6e39d750b7e0aac579eb (diff) | |
download | chromium_src-a1e071118b7ed757f2c975a8fe188fdbe80fcdd1.zip chromium_src-a1e071118b7ed757f2c975a8fe188fdbe80fcdd1.tar.gz chromium_src-a1e071118b7ed757f2c975a8fe188fdbe80fcdd1.tar.bz2 |
Implement more of the BookmarkBubble, connecting it to the bookmark system.
This allows you to edit the bookmark title, and remove the bookmark.
BUG=11738
TEST=Click the bookmark star, you should be able to edit the bookmark title
and remove the bookmark.
Review URL: http://codereview.chromium.org/119079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/toolbar_star_toggle_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/toolbar_star_toggle_gtk.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/gtk/toolbar_star_toggle_gtk.cc b/chrome/browser/gtk/toolbar_star_toggle_gtk.cc index 4e03454..77c5732 100644 --- a/chrome/browser/gtk/toolbar_star_toggle_gtk.cc +++ b/chrome/browser/gtk/toolbar_star_toggle_gtk.cc @@ -7,10 +7,12 @@ #include "app/resource_bundle.h" #include "base/gfx/rect.h" #include "chrome/browser/gtk/bookmark_bubble_gtk.h" +#include "chrome/browser/gtk/browser_toolbar_gtk.h" #include "grit/theme_resources.h" -ToolbarStarToggleGtk::ToolbarStarToggleGtk() - : widget_(gtk_button_new()), +ToolbarStarToggleGtk::ToolbarStarToggleGtk(BrowserToolbarGtk* host) + : host_(host), + widget_(gtk_button_new()), is_starred_(false), unstarred_(IDR_STAR, IDR_STAR_P, IDR_STAR_H, IDR_STAR_D), starred_(IDR_STARRED, IDR_STARRED_P, IDR_STARRED_H, 0) { @@ -42,7 +44,7 @@ void ToolbarStarToggleGtk::ShowStarBubble(const GURL& url, BookmarkBubbleGtk::Show(GTK_WINDOW(gtk_widget_get_toplevel(widget)), gfx::Rect(x, y, width, height), - NULL, + host_->profile(), url, newly_bookmarked); } |