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

Unified Diff: chrome/browser/ui/views/accessible_pane_view.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: chrome/browser/ui/views/accessible_pane_view.cc
===================================================================
--- chrome/browser/ui/views/accessible_pane_view.cc (revision 74231)
+++ chrome/browser/ui/views/accessible_pane_view.cc (working copy)
@@ -48,7 +48,7 @@
// Use the provided initial focus if it's visible and enabled, otherwise
// use the first focusable child.
if (!initial_focus ||
- !IsParentOf(initial_focus) ||
+ !Contains(initial_focus) ||
!initial_focus->IsVisible() ||
!initial_focus->IsEnabled()) {
initial_focus = GetFirstFocusableChild();
@@ -216,7 +216,7 @@
&AccessiblePaneView::LocationBarSelectAll));
}
- if (!IsParentOf(focused_now) ||
+ if (!Contains(focused_now) ||
reason == views::FocusManager::kReasonDirectFocusChange) {
// We should remove pane focus (i.e. make most of the controls
// not focusable again) either because the focus is leaving the pane,

Powered by Google App Engine
This is Rietveld 408576698