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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
Index: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h
===================================================================
--- chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h (revision 95527)
+++ chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h (working copy)
@@ -37,7 +37,6 @@
class GtkThemeService;
class MenuGtk;
class PageNavigator;
-class Profile;
class TabstripOriginProvider;
class BookmarkBarGtk : public ui::AnimationDelegate,
@@ -52,18 +51,10 @@
static const int kBookmarkBarNTPHeight;
BookmarkBarGtk(BrowserWindowGtk* window,
- Profile* profile,
Browser* browser,
TabstripOriginProvider* tabstrip_origin_provider);
virtual ~BookmarkBarGtk();
- // Resets the profile. This removes any buttons for the current profile and
- // recreates the models.
- void SetProfile(Profile* profile);
-
- // Returns the current profile.
- Profile* GetProfile() { return profile_; }
-
// Returns the current browser.
Browser* browser() const { return browser_; }
@@ -75,7 +66,7 @@
void SetPageNavigator(PageNavigator* navigator);
// Create the contents of the bookmark bar.
- void Init(Profile* profile);
+ void Init();
// Changes the state of the bookmark bar.
void SetBookmarkBarState(BookmarkBar::State state,
@@ -134,9 +125,15 @@
// bookmarks in it.
void UpdateOtherBookmarksVisibility();
- // Helper function which destroys all the bookmark buttons in the GtkToolbar.
- void RemoveAllBookmarkButtons();
+ // Destroys all the bookmark buttons in the GtkToolbar.
+ void RemoveAllButtons();
+ // Adds the "other bookmarks" and overflow buttons.
+ void AddCoreButtons();
+
+ // Removes and recreates all buttons in the bar.
+ void ResetButtons();
+
// Returns the number of buttons corresponding to starred urls/folders. This
// is equivalent to the number of children the bookmark bar node from the
// bookmark bar model has.
@@ -302,8 +299,6 @@
// Updates the drag&drop state when |edit_bookmarks_enabled_| changes.
void OnEditBookmarksEnabledChanged();
- Profile* profile_;
-
// Used for opening urls.
PageNavigator* page_navigator_;
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698