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

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

Issue 302313005: Show the Managed Bookmarks folder in the views UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac browser_Tests Created 6 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/browser/ui/view_ids.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_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_bar_view.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
index b8e98b6b8b94ac1390ed70dc829ec663c8f9b1cf..b572d1398b745eb4622aafd1f1fb86beeb75bf1a 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
@@ -31,6 +31,7 @@
class BookmarkContextMenu;
class Browser;
class BrowserView;
+class ChromeBookmarkClient;
class Profile;
namespace content {
@@ -301,6 +302,9 @@ class BookmarkBarView : public DetachableToolbarView,
// Creates the button showing the other bookmarked items.
views::MenuButton* CreateOtherBookmarkedButton();
+ // Creates the button showing the managed bookmarks items.
+ views::MenuButton* CreateManagedBookmarksButton();
+
// Creates the button used when not all bookmark buttons fit.
views::MenuButton* CreateOverflowButton();
@@ -362,9 +366,9 @@ class BookmarkBarView : public DetachableToolbarView,
// Updates the colors for all the child objects in the bookmarks bar.
void UpdateColors();
- // Updates the visibility of |other_bookmarked_button_|. Also shows or hide
- // the separator if required.
- void UpdateOtherBookmarksVisibility();
+ // Updates the visibility of |other_bookmarked_button_| and
+ // |managed_bookmarks_button_|. Also shows or hides the separator if required.
+ void UpdateButtonsVisibility();
// Updates the visibility of |bookmarks_separator_view_|.
void UpdateBookmarksSeparatorVisibility();
@@ -385,6 +389,9 @@ class BookmarkBarView : public DetachableToolbarView,
// shown. This is owned by the Profile.
BookmarkModel* model_;
+ // The ChromeBookmarkClient that owns the |model_|.
+ ChromeBookmarkClient* client_;
+
// Used to manage showing a Menu, either for the most recently bookmarked
// entries, or for the starred folder.
BookmarkMenuController* bookmark_menu_;
@@ -401,6 +408,9 @@ class BookmarkBarView : public DetachableToolbarView,
// Shows the other bookmark entries.
views::MenuButton* other_bookmarked_button_;
+ // Shows the managed bookmarks entries.
+ views::MenuButton* managed_bookmarks_button_;
+
// Shows the Apps page shortcut.
views::TextButton* apps_page_shortcut_;
« no previous file with comments | « chrome/browser/ui/view_ids.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698