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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 case NotificationType::BOOKMARK_BUBBLE_HIDDEN: | 1318 case NotificationType::BOOKMARK_BUBBLE_HIDDEN: |
1319 StopThrobbing(false); | 1319 StopThrobbing(false); |
1320 break; | 1320 break; |
1321 | 1321 |
1322 default: | 1322 default: |
1323 NOTREACHED(); | 1323 NOTREACHED(); |
1324 break; | 1324 break; |
1325 } | 1325 } |
1326 } | 1326 } |
1327 | 1327 |
1328 void BookmarkBarView::ThemeChanged() { | 1328 void BookmarkBarView::OnThemeChanged() { |
1329 UpdateColors(); | 1329 UpdateColors(); |
1330 } | 1330 } |
1331 | 1331 |
1332 void BookmarkBarView::NotifyModelChanged() { | 1332 void BookmarkBarView::NotifyModelChanged() { |
1333 if (model_changed_listener_) | 1333 if (model_changed_listener_) |
1334 model_changed_listener_->ModelChanged(); | 1334 model_changed_listener_->ModelChanged(); |
1335 } | 1335 } |
1336 | 1336 |
1337 void BookmarkBarView::ShowDropFolderForNode(const BookmarkNode* node) { | 1337 void BookmarkBarView::ShowDropFolderForNode(const BookmarkNode* node) { |
1338 if (bookmark_drop_menu_) { | 1338 if (bookmark_drop_menu_) { |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 // The tooltip is the only way we have to display text explaining the error | 1709 // The tooltip is the only way we have to display text explaining the error |
1710 // to the user. | 1710 // to the user. |
1711 sync_error_button->SetTooltipText( | 1711 sync_error_button->SetTooltipText( |
1712 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); | 1712 l10n_util::GetString(IDS_SYNC_BOOKMARK_BAR_ERROR_DESC)); |
1713 sync_error_button->SetAccessibleName( | 1713 sync_error_button->SetAccessibleName( |
1714 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); | 1714 l10n_util::GetString(IDS_ACCNAME_SYNC_ERROR_BUTTON)); |
1715 sync_error_button->SetIcon( | 1715 sync_error_button->SetIcon( |
1716 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); | 1716 *ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING)); |
1717 return sync_error_button; | 1717 return sync_error_button; |
1718 } | 1718 } |
OLD | NEW |