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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h

Issue 17074010: Reland "bookmarks: Convert "Remove" link into a LabelButton."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hack Created 7 years, 6 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
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
index 5f4e739f9a339fd034c02fb707b65cdf6f8bb5a0..83923ecbc3b1e6a67b55730634b77c7e47f3d884 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
@@ -13,7 +13,6 @@
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/combobox/combobox_listener.h"
-#include "ui/views/controls/link_listener.h"
class BookmarkBubbleViewObserver;
class Profile;
@@ -28,7 +27,6 @@ class Textfield;
// bookmark it is created with. Don't create a BookmarkBubbleView directly,
// instead use the static Show method.
class BookmarkBubbleView : public views::BubbleDelegateView,
- public views::LinkListener,
public views::ButtonListener,
public views::ComboboxListener {
public:
@@ -68,10 +66,8 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
// Returns the title to display.
string16 GetTitle();
- // Overridden from views::LinkListener:
- // Either unstars the item or shows the bookmark editor (depending upon which
- // link was clicked).
- virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
+ // Overridden from views::View:
+ virtual gfx::Size GetMinimumSize() OVERRIDE;
// Overridden from views::ButtonListener:
// Closes the bubble or opens the edit dialog.
@@ -107,8 +103,8 @@ class BookmarkBubbleView : public views::BubbleDelegateView,
RecentlyUsedFoldersComboModel parent_model_;
- // Link for removing/unstarring the bookmark.
- views::Link* remove_link_;
+ // Button for removing the bookmark.
+ views::LabelButton* remove_button_;
// Button to bring up the editor.
views::LabelButton* edit_button_;
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698