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

Unified Diff: chrome/browser/ui/views/bar_control_button.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
Index: chrome/browser/ui/views/bar_control_button.cc
diff --git a/chrome/browser/ui/views/bar_control_button.cc b/chrome/browser/ui/views/bar_control_button.cc
index 440ec4a8eacb5b79040912e51de7fbcf48774c19..b5a64d25580bd111dc88741c6eca25a1f7507a5e 100644
--- a/chrome/browser/ui/views/bar_control_button.cc
+++ b/chrome/browser/ui/views/bar_control_button.cc
@@ -19,15 +19,13 @@ const int kButtonExtraTouchSize = 4;
} // namespace
BarControlButton::BarControlButton(views::ButtonListener* listener)
- : views::ImageButton(listener),
- id_(gfx::VectorIconId::VECTOR_ICON_NONE),
- ink_drop_delegate_(new views::ButtonInkDropDelegate(this, this)) {
- set_ink_drop_delegate(ink_drop_delegate_.get());
+ : views::ImageButton(listener), id_(gfx::VectorIconId::VECTOR_ICON_NONE) {
+ set_ink_drop_delegate(
+ base::WrapUnique(new views::ButtonInkDropDelegate(this, this)));
set_has_ink_drop_action_on_click(true);
SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
SetFocusPainter(nullptr);
- UseMdFocusRing();
}
BarControlButton::~BarControlButton() {}
« no previous file with comments | « chrome/browser/ui/views/bar_control_button.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698