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

Side by Side Diff: chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc

Issue 414203002: Modified tab change to work with status tray change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: if no accessible ancestor, original view is returned Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/accessibility/accessibility_event_router_views .h" 5 #include "chrome/browser/ui/views/accessibility/accessibility_event_router_views .h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 std::string result = RecursiveGetStaticText(child); 584 std::string result = RecursiveGetStaticText(child);
585 if (!result.empty()) 585 if (!result.empty())
586 return result; 586 return result;
587 } 587 }
588 return std::string(); 588 return std::string();
589 } 589 }
590 590
591 // static 591 // static
592 views::View* AccessibilityEventRouterViews::FindFirstAccessibleAncestor( 592 views::View* AccessibilityEventRouterViews::FindFirstAccessibleAncestor(
593 views::View* view) { 593 views::View* view) {
594 while (view->parent() && !view->IsAccessibilityFocusable()) { 594 views::View* temp_view = view;
595 view = view->parent(); 595 while (temp_view->parent() && !temp_view->IsAccessibilityFocusable()) {
596 temp_view = temp_view->parent();
596 } 597 }
sky 2014/07/25 20:14:26 nit: no {} here.
evy 2014/07/25 20:55:31 Done.
597 return view; 598 if (temp_view->IsAccessibilityFocusable())
599 return temp_view;
600 else
sky 2014/07/25 20:14:26 nit: no else here, see style guide.
evy 2014/07/25 20:55:31 Done.
601 return view;
598 } 602 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698