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

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

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 years 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 24428d1d8700bbcd2d222f376b67c68f0c8a55a7..c63eb866859833522b1d856ad450d12cb686d45c 100644
--- a/ash/system/date/date_view.cc
+++ b/ash/system/date/date_view.cc
@@ -137,7 +137,7 @@ DateView::DateView()
date_label_->SetEnabledColor(kHeaderTextColorNormal);
UpdateTextInternal(base::Time::Now());
AddChildView(date_label_);
- set_focusable(actionable_);
+ SetFocusable(actionable_);
}
DateView::~DateView() {
@@ -145,7 +145,7 @@ DateView::~DateView() {
void DateView::SetActionable(bool actionable) {
actionable_ = actionable;
- set_focusable(actionable_);
+ SetFocusable(actionable_);
}
void DateView::UpdateTimeFormat() {
@@ -195,7 +195,7 @@ TimeView::TimeView(TrayDate::ClockLayout clock_layout)
SetupLabels();
UpdateTextInternal(base::Time::Now());
UpdateClockLayout(clock_layout);
- set_focusable(false);
+ SetFocusable(false);
}
TimeView::~TimeView() {

Powered by Google App Engine
This is Rietveld 408576698