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

Unified Diff: chrome/browser/ui/views/download/download_shelf_view.cc

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: fix cros build Created 3 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/views/download/download_shelf_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_view.cc b/chrome/browser/ui/views/download/download_shelf_view.cc
index 23b32978b9c7f763f8fb1da9c346a56a417695ee..a85e288ab200b3b346ccb2173258e7caa6dd3446 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_view.cc
@@ -35,7 +35,6 @@
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/md_text_button.h"
-#include "ui/views/controls/button/vector_icon_button.h"
#include "ui/views/controls/link.h"
#include "ui/views/mouse_watcher_view_host.h"
@@ -112,9 +111,8 @@ DownloadShelfView::DownloadShelfView(Browser* browser, BrowserView* parent)
this, l10n_util::GetStringUTF16(IDS_SHOW_ALL_DOWNLOADS));
AddChildView(show_all_view_);
- views::VectorIconButton* close_button = new views::VectorIconButton(this);
- close_button->SetIcon(ui::kCloseIcon);
- close_button_ = close_button;
+ close_button_ =
+ views::ImageButton::CreateDefaultVectorIconButton(ui::kCloseIcon, this);
close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
AddChildView(close_button_);
@@ -355,7 +353,7 @@ void DownloadShelfView::ButtonPressed(
NOTREACHED();
}
-SkColor DownloadShelfView::GetVectorIconBaseColor() const {
+SkColor DownloadShelfView::GetVectorIconColor() const {
return DownloadItemView::GetTextColorForThemeProvider(GetThemeProvider());
}

Powered by Google App Engine
This is Rietveld 408576698