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

Unified Diff: ash/system/toast/toast_overlay.cc

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout Created 4 years, 7 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 | « no previous file | chrome/browser/ui/views/bar_control_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/toast/toast_overlay.cc
diff --git a/ash/system/toast/toast_overlay.cc b/ash/system/toast/toast_overlay.cc
index 70c7abf9e5934d0fd79d191488b46e1efa38625d..6708aa12c55d4a1457a2a1820fc4ad2381b3e0a7 100644
--- a/ash/system/toast/toast_overlay.cc
+++ b/ash/system/toast/toast_overlay.cc
@@ -116,17 +116,14 @@ class ToastOverlayButton : public views::LabelButton {
private:
friend class ToastOverlay; // for ToastOverlay::ClickDismissButtonForTesting.
- // Controls the visual feedback for the button state.
- std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_;
-
DISALLOW_COPY_AND_ASSIGN(ToastOverlayButton);
};
ToastOverlayButton::ToastOverlayButton(views::ButtonListener* listener,
const base::string16& text)
- : views::LabelButton(listener, text),
- ink_drop_delegate_(new views::ButtonInkDropDelegate(this, this)) {
- set_ink_drop_delegate(ink_drop_delegate_.get());
+ : views::LabelButton(listener, text) {
+ set_ink_drop_delegate(
+ base::WrapUnique(new views::ButtonInkDropDelegate(this, this)));
set_has_ink_drop_action_on_click(true);
set_ink_drop_base_color(SK_ColorWHITE);
« no previous file with comments | « no previous file | chrome/browser/ui/views/bar_control_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698