OLD | NEW |
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 #import "chrome/browser/chrome_browser_application_mac.h" | 5 #import "chrome/browser/chrome_browser_application_mac.h" |
6 | 6 |
7 #import "base/auto_reset.h" | 7 #import "base/auto_reset.h" |
8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #import "base/logging.h" | 10 #import "base/logging.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 reportingException = NO; | 531 reportingException = NO; |
532 } | 532 } |
533 | 533 |
534 [super reportException:anException]; | 534 [super reportException:anException]; |
535 } | 535 } |
536 | 536 |
537 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { | 537 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { |
538 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && | 538 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && |
539 [value intValue] == 1) { | 539 [value intValue] == 1) { |
540 content::BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); | 540 content::BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); |
541 for (TabContentsIterator it; !it.done(); it.Next()) { | |
542 if (content::WebContents* contents = *it) | |
543 if (content::RenderViewHost* rvh = contents->GetRenderViewHost()) | |
544 rvh->EnableFullAccessibilityMode(); | |
545 } | |
546 } | 541 } |
547 return [super accessibilitySetValue:value forAttribute:attribute]; | 542 return [super accessibilitySetValue:value forAttribute:attribute]; |
548 } | 543 } |
549 | 544 |
550 - (void)_cycleWindowsReversed:(BOOL)arg1 { | 545 - (void)_cycleWindowsReversed:(BOOL)arg1 { |
551 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); | 546 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); |
552 [super _cycleWindowsReversed:arg1]; | 547 [super _cycleWindowsReversed:arg1]; |
553 } | 548 } |
554 | 549 |
555 - (BOOL)isCyclingWindows { | 550 - (BOOL)isCyclingWindows { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 std::vector<NSWindow*>::iterator window_iterator = | 600 std::vector<NSWindow*>::iterator window_iterator = |
606 std::find(previousKeyWindows_.begin(), | 601 std::find(previousKeyWindows_.begin(), |
607 previousKeyWindows_.end(), | 602 previousKeyWindows_.end(), |
608 window); | 603 window); |
609 if (window_iterator != previousKeyWindows_.end()) { | 604 if (window_iterator != previousKeyWindows_.end()) { |
610 previousKeyWindows_.erase(window_iterator); | 605 previousKeyWindows_.erase(window_iterator); |
611 } | 606 } |
612 } | 607 } |
613 | 608 |
614 @end | 609 @end |
OLD | NEW |