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

Unified Diff: chrome/browser/ui/views/download/download_item_view_md.h

Issue 2305933002: Update dialog close buttons to use vector icons and ripples. (Closed)
Patch Set: always good to compile Created 4 years, 3 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_item_view_md.h
diff --git a/chrome/browser/ui/views/download/download_item_view_md.h b/chrome/browser/ui/views/download/download_item_view_md.h
index b0aa149bc21567a9af181f1fc5608ad703718a61..f3301bea7e35a6511bd42fbc18c7ea2cc512afc9 100644
--- a/chrome/browser/ui/views/download/download_item_view_md.h
+++ b/chrome/browser/ui/views/download/download_item_view_md.h
@@ -33,7 +33,7 @@
#include "ui/gfx/font_list.h"
#include "ui/views/animation/ink_drop_host_view.h"
#include "ui/views/context_menu_controller.h"
-#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/vector_icon_button_delegate.h"
class DownloadShelfView;
class DownloadShelfContextMenuView;
@@ -61,7 +61,7 @@ class LabelButton;
// The DownloadItemView in MD style. This is copied from DownloadItemView,
// which it should eventually replace.
class DownloadItemViewMd : public views::InkDropHostView,
- public views::ButtonListener,
+ public views::VectorIconButtonDelegate,
public views::ContextMenuController,
public content::DownloadItem::Observer,
public gfx::AnimationDelegate {
@@ -116,8 +116,9 @@ class DownloadItemViewMd : public views::InkDropHostView,
const gfx::Point& point,
ui::MenuSourceType source_type) override;
- // ButtonListener implementation.
+ // VectorIconButtonDelegate implementation.
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+ SkColor GetVectorIconBaseColor() const override;
// gfx::AnimationDelegate implementation.
void AnimationProgressed(const gfx::Animation* animation) override;
« no previous file with comments | « chrome/browser/ui/views/bar_control_button.cc ('k') | chrome/browser/ui/views/download/download_item_view_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698