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 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h" | 5 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 10 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
12 #include "components/bookmarks/core/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
13 | 13 |
14 | 14 |
15 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, | 15 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, |
16 BookmarkBarController* controller, | 16 BookmarkBarController* controller, |
17 BookmarkModel* model) | 17 BookmarkModel* model) |
18 : controller_(controller), | 18 : controller_(controller), |
19 model_(model), | 19 model_(model), |
20 batch_mode_(false) { | 20 batch_mode_(false) { |
21 model_->AddObserver(this); | 21 model_->AddObserver(this); |
22 | 22 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 106 } |
107 | 107 |
108 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { | 108 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { |
109 batch_mode_ = false; | 109 batch_mode_ = false; |
110 [controller_ loaded:model]; | 110 [controller_ loaded:model]; |
111 } | 111 } |
112 | 112 |
113 void BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged() { | 113 void BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged() { |
114 [controller_ updateAppsPageShortcutButtonVisibility]; | 114 [controller_ updateAppsPageShortcutButtonVisibility]; |
115 } | 115 } |
OLD | NEW |