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

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

Issue 2069733002: MD - Use real comboboxes in website settings popup. Hide borders (but (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 6 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/toolbar/app_menu_button.cc » ('j') | 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 7199f4496b7b7f745b9ed20aedcfb44e112363a0..e55eb2e077f93eae060943e45e6c22ac6b17bf00 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -205,8 +205,11 @@ class BookmarkButtonBase : public views::LabelButton {
const base::string16& title)
: LabelButton(listener, title) {
SetElideBehavior(kElideBehavior);
- SetHasInkDrop(ui::MaterialDesignController::IsModeMaterial());
- set_has_ink_drop_action_on_click(true);
+ if (ui::MaterialDesignController::IsModeMaterial()) {
+ SetHasInkDrop(true);
+ set_has_ink_drop_action_on_click(true);
+ SetFocusPainter(nullptr);
+ }
show_animation_.reset(new gfx::SlideAnimation(this));
if (!animations_enabled) {
// For some reason during testing the events generated by animating
@@ -332,6 +335,8 @@ class BookmarkMenuButtonBase : public views::MenuButton {
bool show_menu_marker)
: MenuButton(title, menu_button_listener, show_menu_marker) {
SetHasInkDrop(ui::MaterialDesignController::IsModeMaterial());
+ if (ui::MaterialDesignController::IsModeMaterial())
+ SetFocusPainter(nullptr);
}
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/app_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698