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

Unified Diff: ui/views/view.cc

Issue 8996009: views: Rename IsFocusableInRootView() to just IsFocusable(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 244f261bc5f14df73204aadc62280b103238f7f5..f260e37961559c75a7d47b296d239536b69e9910 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -894,7 +894,7 @@ void View::SetNextFocusableView(View* view) {
next_focusable_view_ = view;
}
-bool View::IsFocusableInRootView() const {
+bool View::IsFocusable() const {
return focusable_ && enabled_ && IsDrawn();
}
@@ -914,7 +914,7 @@ const FocusManager* View::GetFocusManager() const {
void View::RequestFocus() {
FocusManager* focus_manager = GetFocusManager();
- if (focus_manager && IsFocusableInRootView())
+ if (focus_manager && IsFocusable())
focus_manager->SetFocusedView(this);
}
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698