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

Unified Diff: ash/system/user/button_from_view.cc

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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 | « ash/system/tray/tray_popup_label_button.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/button_from_view.cc
diff --git a/ash/system/user/button_from_view.cc b/ash/system/user/button_from_view.cc
index b3c434d47f770be421c88be7d51bcaad44781e13..13bdbb0dd0cf0d0703b50a8bdfd8297cd2a370dd 100644
--- a/ash/system/user/button_from_view.cc
+++ b/ash/system/user/button_from_view.cc
@@ -43,7 +43,7 @@ ButtonFromView::ButtonFromView(views::View* content,
ShowActive();
// Only make it focusable when we are active/interested in clicks.
if (listener)
- SetFocusable(true);
+ SetFocusBehavior(FocusBehavior::ALWAYS);
}
ButtonFromView::~ButtonFromView() {}
« no previous file with comments | « ash/system/tray/tray_popup_label_button.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698