Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/views/bookmark_bar_view.cc

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.h ('k') | chrome/browser/views/constrained_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698