| 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/logging.h" | 7 #import "base/logging.h" |
| 8 #include "base/mac/crash_logging.h" | 8 #include "base/mac/crash_logging.h" |
| 9 #import "base/mac/scoped_nsexception_enabler.h" | 9 #import "base/mac/scoped_nsexception_enabler.h" |
| 10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 } | 471 } |
| 472 | 472 |
| 473 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { | 473 - (void)accessibilitySetValue:(id)value forAttribute:(NSString*)attribute { |
| 474 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && | 474 if ([attribute isEqualToString:@"AXEnhancedUserInterface"] && |
| 475 [value intValue] == 1) { | 475 [value intValue] == 1) { |
| 476 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); | 476 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); |
| 477 for (TabContentsIterator it; | 477 for (TabContentsIterator it; |
| 478 !it.done(); | 478 !it.done(); |
| 479 ++it) { | 479 ++it) { |
| 480 if (TabContentsWrapper* contents = *it) { | 480 if (TabContentsWrapper* contents = *it) { |
| 481 if (RenderViewHost* rvh = | 481 if (content::RenderViewHost* rvh = |
| 482 contents->web_contents()->GetRenderViewHost()) { | 482 contents->web_contents()->GetRenderViewHost()) { |
| 483 rvh->EnableRendererAccessibility(); | 483 rvh->EnableRendererAccessibility(); |
| 484 } | 484 } |
| 485 } | 485 } |
| 486 } | 486 } |
| 487 } | 487 } |
| 488 return [super accessibilitySetValue:value forAttribute:attribute]; | 488 return [super accessibilitySetValue:value forAttribute:attribute]; |
| 489 } | 489 } |
| 490 | 490 |
| 491 @end | 491 @end |
| OLD | NEW |