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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu.cc

Issue 1963563002: Views: Flip default value of CustomButton::request_focus_on_press_ to false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/toolbar/app_menu.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu.cc b/chrome/browser/ui/views/toolbar/app_menu.cc
index 6e6adf43ffe437f70b2fd8ee90c22de62465116f..60eb881052825b03c91ffde13f1def4afe944a11 100644
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
@@ -287,7 +287,6 @@ class InMenuButton : public LabelButton {
// An InMenuButton should always be focusable regardless of the platform.
// Hence we don't use Button::ConfigureDefaultFocus().
SetFocusBehavior(FocusBehavior::ALWAYS);
- set_request_focus_on_press(false);
SetHorizontalAlignment(gfx::ALIGN_CENTER);
in_menu_background_ = new InMenuButtonBackground(type);
@@ -558,7 +557,6 @@ class AppMenu::ZoomView : public AppMenuView {
// Since |fullscreen_button_| will reside in a menu, make it ALWAYS
// focusable regardless of the platform.
fullscreen_button_->SetFocusBehavior(FocusBehavior::ALWAYS);
- fullscreen_button_->set_request_focus_on_press(false);
fullscreen_button_->set_tag(fullscreen_index);
fullscreen_button_->SetImageAlignment(
ImageButton::ALIGN_CENTER, ImageButton::ALIGN_MIDDLE);

Powered by Google App Engine
This is Rietveld 408576698