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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h

Issue 12550006: Mac: Add a shortcut to open the Apps page from the bookmark bar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor typo. Created 7 years, 9 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 | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
index a473c88541a517d8474180e936b0b5edb9fc7cfe..9b9ef1c5c574e4ab0e7b8da706c9cf99e393a3f8 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
@@ -13,14 +13,16 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/prefs/public/pref_change_registrar.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
-class Browser;
+class Profile;
@class BookmarkBarController;
class BookmarkBarBridge : public BookmarkModelObserver {
public:
- BookmarkBarBridge(BookmarkBarController* controller,
+ BookmarkBarBridge(Profile* profile,
+ BookmarkBarController* controller,
BookmarkModel* model);
virtual ~BookmarkBarBridge();
@@ -53,6 +55,12 @@ class BookmarkBarBridge : public BookmarkModelObserver {
BookmarkModel* model_; // weak; it is owned by a Profile.
bool batch_mode_;
+ // Needed to react to kShowAppsShortcutInBookmarkBar changes.
+ PrefChangeRegistrar profile_pref_registrar_;
+
+ // Updates the visibility of the apps shortcut based on the pref value.
+ void OnAppsPageShortcutVisibilityChanged();
+
DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge);
};
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698