| 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_;
|
|
|
|
|