| 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 #import "base/logging.h" | 9 #import "base/logging.h" |
| 10 #import "base/mac/scoped_nsexception_enabler.h" | 10 #import "base/mac/scoped_nsexception_enabler.h" |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 [super reportException:anException]; | 497 [super reportException:anException]; |
| 498 } | 498 } |
| 499 | 499 |
| 500 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { | 500 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { |
| 501 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && | 501 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && |
| 502 [value intValue] == 1) { | 502 [value intValue] == 1) { |
| 503 content::BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); | 503 content::BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); |
| 504 for (TabContentsIterator it; !it.done(); it.Next()) { | 504 for (TabContentsIterator it; !it.done(); it.Next()) { |
| 505 if (content::WebContents* contents = *it) | 505 if (content::WebContents* contents = *it) |
| 506 if (content::RenderViewHost* rvh = contents->GetRenderViewHost()) | 506 if (content::RenderViewHost* rvh = contents->GetRenderViewHost()) |
| 507 rvh->EnableFullAccessibilityMode(); | 507 rvh->SetAccessibilityMode(content::ACCESSIBILITY_MODE_COMPLETE); |
| 508 } | 508 } |
| 509 } | 509 } |
| 510 return [super accessibilitySetValue:value forAttribute:attribute]; | 510 return [super accessibilitySetValue:value forAttribute:attribute]; |
| 511 } | 511 } |
| 512 | 512 |
| 513 - (void)_cycleWindowsReversed:(BOOL)arg1 { | 513 - (void)_cycleWindowsReversed:(BOOL)arg1 { |
| 514 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); | 514 base::AutoReset<BOOL> pin(&cyclingWindows_, YES); |
| 515 [super _cycleWindowsReversed:arg1]; | 515 [super _cycleWindowsReversed:arg1]; |
| 516 } | 516 } |
| 517 | 517 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 std::vector<NSWindow*>::iterator window_iterator = | 568 std::vector<NSWindow*>::iterator window_iterator = |
| 569 std::find(previousKeyWindows_.begin(), | 569 std::find(previousKeyWindows_.begin(), |
| 570 previousKeyWindows_.end(), | 570 previousKeyWindows_.end(), |
| 571 window); | 571 window); |
| 572 if (window_iterator != previousKeyWindows_.end()) { | 572 if (window_iterator != previousKeyWindows_.end()) { |
| 573 previousKeyWindows_.erase(window_iterator); | 573 previousKeyWindows_.erase(window_iterator); |
| 574 } | 574 } |
| 575 } | 575 } |
| 576 | 576 |
| 577 @end | 577 @end |
| OLD | NEW |