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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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 | Annotate | Revision Log
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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698