| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |