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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h

Issue 16172005: Clean up async app launcher enabled checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // C++ bridge class between Chromium and Cocoa to connect the 5 // C++ bridge class between Chromium and Cocoa to connect the
6 // Bookmarks (model) with the Bookmark Bar (view). 6 // Bookmarks (model) with the Bookmark Bar (view).
7 // 7 //
8 // There is exactly one BookmarkBarBridge per BookmarkBarController / 8 // There is exactly one BookmarkBarBridge per BookmarkBarController /
9 // BrowserWindowController / Browser. 9 // BrowserWindowController / Browser.
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 BookmarkBarController* controller_; // weak; owns me 55 BookmarkBarController* controller_; // weak; owns me
56 BookmarkModel* model_; // weak; it is owned by a Profile. 56 BookmarkModel* model_; // weak; it is owned by a Profile.
57 bool batch_mode_; 57 bool batch_mode_;
58 58
59 // Needed to react to kShowAppsShortcutInBookmarkBar changes. 59 // Needed to react to kShowAppsShortcutInBookmarkBar changes.
60 PrefChangeRegistrar profile_pref_registrar_; 60 PrefChangeRegistrar profile_pref_registrar_;
61 61
62 // Updates the visibility of the apps shortcut based on the pref value. 62 // Updates the visibility of the apps shortcut based on the pref value.
63 void OnAppsPageShortcutVisibilityPrefChanged(); 63 void OnAppsPageShortcutVisibilityPrefChanged();
64 64
65 // Updates the visibility of the apps shortcut once we know if the app
66 // launcher is enabled.
67 void OnAppLauncherEnabledCompleted(bool app_launcher_enabled);
68
69 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge); 65 DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge);
70 }; 66 };
71 67
72 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_ 68 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_utils.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698