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

Unified Diff: ui/views/view.h

Issue 1924893003: Views: Replace View::focusable() with View::focus_behavior(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
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
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index ec3f72b7de8d2e004558e486fa3635ce93c6e034..6ef583676957089c541995ed208e6dffb80c1621 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1144,9 +1144,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Focus ---------------------------------------------------------------------
- // Returns true if ALWAYS is the last set focus behavior. Use IsFocusable() to
- // determine if a view can take focus right now.
- bool focusable() const { return focus_behavior_ == FocusBehavior::ALWAYS; }
+ // Returns last set focus behavior.
+ FocusBehavior focus_behavior() const { return focus_behavior_; }
// Override to be notified when focus has changed either to or from this View.
virtual void OnFocus();
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698