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

Unified Diff: ash/system/date/date_view.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ash/system/date/date_view.cc
diff --git a/ash/system/date/date_view.cc b/ash/system/date/date_view.cc
index 7a96d9c0c0469fe28d82326ab90f319fbdcecc14..ea44909268938ccb90daa930dd2d90fcb41d57e2 100644
--- a/ash/system/date/date_view.cc
+++ b/ash/system/date/date_view.cc
@@ -138,7 +138,7 @@ DateView::DateView()
date_label_->SetEnabledColor(kHeaderTextColorNormal);
UpdateTextInternal(base::Time::Now());
AddChildView(date_label_);
- SetFocusable(false);
+ SetFocusBehavior(views::View::FocusBehavior::NEVER);
}
DateView::~DateView() {
@@ -154,7 +154,8 @@ void DateView::SetAction(TrayDate::DateAction action) {
SchedulePaint();
}
action_ = action;
- SetFocusable(action_ != TrayDate::NONE);
+ SetFocusBehavior(action_ != TrayDate::NONE ? FocusBehavior::ALWAYS
+ : FocusBehavior::NEVER);
}
void DateView::UpdateTimeFormat() {
@@ -226,7 +227,7 @@ TimeView::TimeView(TrayDate::ClockLayout clock_layout)
SetupLabels();
UpdateTextInternal(base::Time::Now());
UpdateClockLayout(clock_layout);
- SetFocusable(false);
+ SetFocusBehavior(views::View::FocusBehavior::NEVER);
}
TimeView::~TimeView() {

Powered by Google App Engine
This is Rietveld 408576698