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

Unified Diff: ash/system/tray/tray_details_view_unittest.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/actionable_view.cc ('k') | ash/system/tray/tray_popup_header_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_details_view_unittest.cc
diff --git a/ash/system/tray/tray_details_view_unittest.cc b/ash/system/tray/tray_details_view_unittest.cc
index 0d83ae153a2c8fe489a0b430278353cc3c9b1fee..54332f8cdaef2405e4dfe1f4ad6377da3cf4955f 100644
--- a/ash/system/tray/tray_details_view_unittest.cc
+++ b/ash/system/tray/tray_details_view_unittest.cc
@@ -85,7 +85,7 @@ class TestItem : public SystemTrayItem {
}
views::View* CreateDefaultView(user::LoginStatus status) override {
default_view_ = new views::View;
- default_view_->SetFocusable(true);
+ default_view_->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
return default_view_;
}
views::View* CreateDetailedView(user::LoginStatus status) override {
« no previous file with comments | « ash/system/tray/actionable_view.cc ('k') | ash/system/tray/tray_popup_header_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698