| 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" | |
| 9 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 9 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 11 #include "components/bookmarks/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
| 12 #include "components/bookmarks/common/bookmark_pref_names.h" | 11 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 12 #include "components/prefs/pref_service.h" |
| 13 | 13 |
| 14 using bookmarks::BookmarkModel; | 14 using bookmarks::BookmarkModel; |
| 15 using bookmarks::BookmarkNode; | 15 using bookmarks::BookmarkNode; |
| 16 | 16 |
| 17 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, | 17 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, |
| 18 BookmarkBarController* controller, | 18 BookmarkBarController* controller, |
| 19 BookmarkModel* model) | 19 BookmarkModel* model) |
| 20 : controller_(controller), | 20 : controller_(controller), |
| 21 model_(model), | 21 model_(model), |
| 22 batch_mode_(false) { | 22 batch_mode_(false) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { | 117 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { |
| 118 batch_mode_ = false; | 118 batch_mode_ = false; |
| 119 [controller_ loaded:model]; | 119 [controller_ loaded:model]; |
| 120 } | 120 } |
| 121 | 121 |
| 122 void BookmarkBarBridge::OnExtraButtonsVisibilityChanged() { | 122 void BookmarkBarBridge::OnExtraButtonsVisibilityChanged() { |
| 123 [controller_ updateExtraButtonsVisibility]; | 123 [controller_ updateExtraButtonsVisibility]; |
| 124 } | 124 } |
| OLD | NEW |