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

Unified Diff: chrome/browser/ui/views/download/download_shelf_view.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_shelf_view.h
diff --git a/chrome/browser/ui/views/download/download_shelf_view.h b/chrome/browser/ui/views/download/download_shelf_view.h
index 3c8fa19713c74d490dea0c6a13826c64960151e4..2a983d1316a5215b956ba3a46c9916ee0e805ded 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.h
+++ b/chrome/browser/ui/views/download/download_shelf_view.h
@@ -15,7 +15,7 @@
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/accessible_pane_view.h"
-#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/vector_icon_button_delegate.h"
#include "ui/views/controls/link_listener.h"
#include "ui/views/mouse_watcher.h"
@@ -41,7 +41,7 @@ class MdTextButton;
class DownloadShelfView : public views::AccessiblePaneView,
public gfx::AnimationDelegate,
public DownloadShelf,
- public views::ButtonListener,
+ public views::VectorIconButtonDelegate,
public views::LinkListener,
public views::MouseWatcherListener {
public:
@@ -72,10 +72,11 @@ class DownloadShelfView : public views::AccessiblePaneView,
// Invoked when the user clicks the 'show all downloads' link button.
void LinkClicked(views::Link* source, int event_flags) override;
- // Implementation of ButtonListener.
+ // Implementation of VectorIconButtonDelegate.
// Invoked when the user clicks the close button. Asks the browser to
// hide the download shelf.
void ButtonPressed(views::Button* button, const ui::Event& event) override;
+ SkColor GetVectorIconBaseColor() const override;
// Implementation of DownloadShelf.
bool IsShowing() const override;
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698