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

Unified Diff: chrome/browser/ui/gtk/custom_button.cc

Issue 12634025: Inconsistent use of [x] close panel icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_173251
Patch Set: Line wrapping in CSS 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
Index: chrome/browser/ui/gtk/custom_button.cc
diff --git a/chrome/browser/ui/gtk/custom_button.cc b/chrome/browser/ui/gtk/custom_button.cc
index 2b41351df5ae1d617c7aef17e8281a382d0450c9..0c7ce85c255ea33d6aa5a659172be872a7406f7c 100644
--- a/chrome/browser/ui/gtk/custom_button.cc
+++ b/chrome/browser/ui/gtk/custom_button.cc
@@ -355,10 +355,20 @@ gboolean CustomDrawButton::OnCustomExpose(GtkWidget* sender,
}
// static
-CustomDrawButton* CustomDrawButton::CloseButton(
+CustomDrawButton* CustomDrawButton::CloseButtonBar(
GtkThemeService* theme_provider) {
- CustomDrawButton* button = new CustomDrawButton(theme_provider, IDR_CLOSE_BAR,
- IDR_CLOSE_BAR_P, IDR_CLOSE_BAR_H, 0, GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
+ CustomDrawButton* button = new CustomDrawButton(theme_provider,
+ IDR_CLOSE_1, IDR_CLOSE_1_P, IDR_CLOSE_1_H, 0,
+ GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
+ return button;
+}
+
+// static
+CustomDrawButton* CustomDrawButton::CloseButtonBubble(
+ GtkThemeService* theme_provider) {
+ CustomDrawButton* button = new CustomDrawButton(theme_provider,
+ IDR_CLOSE_2, IDR_CLOSE_2_P, IDR_CLOSE_2_H, 0,
+ GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
return button;
}

Powered by Google App Engine
This is Rietveld 408576698