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 } |
541 } | 546 } |
542 return [super accessibilitySetValue:value forAttribute:attribute]; | 547 return [super accessibilitySetValue:value forAttribute:attribute]; |
543 } | 548 } |
544 | 549 |
545 - (void)_cycleWindowsReversed:(BOOL)arg1 { | 550 - (void)_cycleWindowsReversed:(BOOL)arg1 { |
546 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); | 551 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); |
547 [super _cycleWindowsReversed:arg1]; | 552 [super _cycleWindowsReversed:arg1]; |
548 } | 553 } |
549 | 554 |
550 - (BOOL)isCyclingWindows { | 555 - (BOOL)isCyclingWindows { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 std::vector<NSWindow*>::iterator window_iterator = | 605 std::vector<NSWindow*>::iterator window_iterator = |
601 std::find(previousKeyWindows_.begin(), | 606 std::find(previousKeyWindows_.begin(), |
602 previousKeyWindows_.end(), | 607 previousKeyWindows_.end(), |
603 window); | 608 window); |
604 if (window_iterator != previousKeyWindows_.end()) { | 609 if (window_iterator != previousKeyWindows_.end()) { |
605 previousKeyWindows_.erase(window_iterator); | 610 previousKeyWindows_.erase(window_iterator); |
606 } | 611 } |
607 } | 612 } |
608 | 613 |
609 @end | 614 @end |
OLD | NEW |