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

Side by Side Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove #include which crept back in" Created 7 years, 9 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 | content/browser/accessibility/accessibility_tree_formatter_impl.h » ('j') | 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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698