void FocusManager::AdvanceFocus(bool reverse) { View* v = GetNextFocusableView(focused_view_, reverse, false); // Note: Do not skip this next block when v == focused_view_. If the user // tabs past the last focusable element in a webpage, we'll get here, and if // the TabContentsContainerView is the only focusable view (possible in // fullscreen mode), we need to run this block in order to cycle around to the // first element on the page. if(v) { v->AboutToRequestFocusFromTabTraversal(reverse); SetFocusedViewWithReason(v, kReasonFocusTraversal); } }