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

Unified Diff: chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc

Issue 12742013: Inconsistent use of [x] close panel icon. Code changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_217094_3
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/infobars/infobar_gtk.cc ('k') | chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc b/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc
index e6bc666713a6375ed80deec24f481f36c5aff4d2..80da5f5c6e45b53bd112896cc888ff1648630991 100644
--- a/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc
+++ b/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc
@@ -268,14 +268,11 @@ void BalloonViewImpl::Show(Balloon* balloon) {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
// Create a button to dismiss the balloon and add it to the toolbar.
- close_button_.reset(new CustomDrawButton(IDR_TAB_CLOSE,
- IDR_TAB_CLOSE_P,
- IDR_TAB_CLOSE_H,
- IDR_TAB_CLOSE));
+ close_button_.reset(CustomDrawButton::CloseButtonBar(theme_service_));
close_button_->SetBackground(
SK_ColorBLACK,
- rb.GetImageNamed(IDR_TAB_CLOSE).AsBitmap(),
- rb.GetImageNamed(IDR_TAB_CLOSE_MASK).AsBitmap());
+ rb.GetImageNamed(IDR_CLOSE_1).AsBitmap(),
+ rb.GetImageNamed(IDR_CLOSE_1_MASK).AsBitmap());
gtk_widget_set_tooltip_text(close_button_->widget(), dismiss_text.c_str());
g_signal_connect(close_button_->widget(), "clicked",
G_CALLBACK(OnCloseButtonThunk), this);
« no previous file with comments | « chrome/browser/ui/gtk/infobars/infobar_gtk.cc ('k') | chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698