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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 2508243002: Enabled ink drop highlight for focus on bookmark bar buttons. (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 28fb2baf8263f1b6d6fa14299e4e6ade6d4d6cd8..361c0a90a5eab2b270127cf475608aa5d6412326 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -217,7 +217,10 @@ class BookmarkButtonBase : public views::LabelButton {
// LabelButton:
std::unique_ptr<views::InkDrop> CreateInkDrop() override {
- return CreateDefaultFloodFillInkDropImpl();
+ std::unique_ptr<views::InkDropImpl> ink_drop =
+ CreateDefaultFloodFillInkDropImpl();
+ ink_drop->SetShowHighlightOnFocus(true);
Peter Kasting 2016/11/17 19:31:57 Should CreateDefaultFloodFillInkDropImpl() do this
bruthig 2016/11/17 19:43:33 At a high level there is a lot of rework opportuni
+ return std::move(ink_drop);
}
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
@@ -337,7 +340,10 @@ class BookmarkMenuButtonBase : public views::MenuButton {
// MenuButton:
std::unique_ptr<views::InkDrop> CreateInkDrop() override {
- return CreateDefaultFloodFillInkDropImpl();
+ std::unique_ptr<views::InkDropImpl> ink_drop =
+ CreateDefaultFloodFillInkDropImpl();
+ ink_drop->SetShowHighlightOnFocus(true);
+ return std::move(ink_drop);
}
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698