| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/bookmark_bar_view.h" | 5 #include "chrome/browser/views/bookmark_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 case NotificationType::BOOKMARK_BUBBLE_HIDDEN: | 1327 case NotificationType::BOOKMARK_BUBBLE_HIDDEN: |
| 1328 StopThrobbing(false); | 1328 StopThrobbing(false); |
| 1329 break; | 1329 break; |
| 1330 | 1330 |
| 1331 default: | 1331 default: |
| 1332 NOTREACHED(); | 1332 NOTREACHED(); |
| 1333 break; | 1333 break; |
| 1334 } | 1334 } |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 void BookmarkBarView::ThemeChanged() { | 1337 void BookmarkBarView::OnThemeChanged() { |
| 1338 UpdateColors(); | 1338 UpdateColors(); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 void BookmarkBarView::NotifyModelChanged() { | 1341 void BookmarkBarView::NotifyModelChanged() { |
| 1342 if (model_changed_listener_) | 1342 if (model_changed_listener_) |
| 1343 model_changed_listener_->ModelChanged(); | 1343 model_changed_listener_->ModelChanged(); |
| 1344 } | 1344 } |
| 1345 | 1345 |
| 1346 void BookmarkBarView::ShowDropFolderForNode(const BookmarkNode* node) { | 1346 void BookmarkBarView::ShowDropFolderForNode(const BookmarkNode* node) { |
| 1347 if (bookmark_drop_menu_) { | 1347 if (bookmark_drop_menu_) { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 // The tooltip is the only way we have to display text explaining the error | 1718 // The tooltip is the only way we have to display text explaining the error |
| 1719 // to the user. | 1719 // to the user. |
| 1720 sync_error_button->SetTooltipText( | 1720 sync_error_button->SetTooltipText( |
| 1721 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); | 1721 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); |
| 1722 sync_error_button->SetAccessibleName( | 1722 sync_error_button->SetAccessibleName( |
| 1723 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); | 1723 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); |
| 1724 sync_error_button->SetIcon( | 1724 sync_error_button->SetIcon( |
| 1725 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); | 1725 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); |
| 1726 return sync_error_button; | 1726 return sync_error_button; |
| 1727 } | 1727 } |
| OLD | NEW |