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

Unified Diff: ash/system/toast/toast_overlay.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
Index: ash/system/toast/toast_overlay.cc
diff --git a/ash/system/toast/toast_overlay.cc b/ash/system/toast/toast_overlay.cc
index deaba0eb817eb5476a12da69a8a07c252b1643a1..8a7f60b3bf828881513550912ba4eb37ef480fae 100644
--- a/ash/system/toast/toast_overlay.cc
+++ b/ash/system/toast/toast_overlay.cc
@@ -65,7 +65,7 @@ ToastOverlayLabel::ToastOverlayLabel(const std::string& label) {
SetHorizontalAlignment(gfx::ALIGN_LEFT);
SetFontList(rb->GetFontList(kTextFontStyle));
SetAutoColorReadabilityEnabled(false);
- SetFocusable(false);
+ SetFocusBehavior(FocusBehavior::NEVER);
SetEnabledColor(SK_ColorWHITE);
SetDisabledColor(SK_ColorWHITE);
SetSubpixelRenderingEnabled(false);

Powered by Google App Engine
This is Rietveld 408576698