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

Side by Side Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 697903002: Fix some minor typos related to the word "accessibility". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix an error of the chromeos build. Created 6 years, 1 month 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
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 #include <execinfo.h> 5 #include <execinfo.h>
6 6
7 #import "content/browser/accessibility/browser_accessibility_cocoa.h" 7 #import "content/browser/accessibility/browser_accessibility_cocoa.h"
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 ui::AX_ATTR_CAN_SET_VALUE); 1354 ui::AX_ATTR_CAN_SET_VALUE);
1355 } 1355 }
1356 if ([attribute isEqualToString:NSAccessibilitySelectedTextRangeAttribute] && 1356 if ([attribute isEqualToString:NSAccessibilitySelectedTextRangeAttribute] &&
1357 ([[self role] isEqualToString:NSAccessibilityTextFieldRole] || 1357 ([[self role] isEqualToString:NSAccessibilityTextFieldRole] ||
1358 [[self role] isEqualToString:NSAccessibilityTextAreaRole])) 1358 [[self role] isEqualToString:NSAccessibilityTextAreaRole]))
1359 return YES; 1359 return YES;
1360 1360
1361 return NO; 1361 return NO;
1362 } 1362 }
1363 1363
1364 // Returns whether or not this object should be ignored in the accessibilty 1364 // Returns whether or not this object should be ignored in the accessibility
1365 // tree. 1365 // tree.
1366 - (BOOL)accessibilityIsIgnored { 1366 - (BOOL)accessibilityIsIgnored {
1367 if (!browserAccessibility_) 1367 if (!browserAccessibility_)
1368 return true; 1368 return true;
1369 1369
1370 return [self isIgnored]; 1370 return [self isIgnored];
1371 } 1371 }
1372 1372
1373 // Performs the given accessibilty action on the webkit accessibility object 1373 // Performs the given accessibility action on the webkit accessibility object
1374 // that backs this object. 1374 // that backs this object.
1375 - (void)accessibilityPerformAction:(NSString*)action { 1375 - (void)accessibilityPerformAction:(NSString*)action {
1376 if (!browserAccessibility_) 1376 if (!browserAccessibility_)
1377 return; 1377 return;
1378 1378
1379 // TODO(dmazzoni): Support more actions. 1379 // TODO(dmazzoni): Support more actions.
1380 if ([action isEqualToString:NSAccessibilityPressAction]) { 1380 if ([action isEqualToString:NSAccessibilityPressAction]) {
1381 [self delegate]->AccessibilityDoDefaultAction( 1381 [self delegate]->AccessibilityDoDefaultAction(
1382 browserAccessibility_->GetId()); 1382 browserAccessibility_->GetId());
1383 } else if ([action isEqualToString:NSAccessibilityShowMenuAction]) { 1383 } else if ([action isEqualToString:NSAccessibilityShowMenuAction]) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 return [super hash]; 1466 return [super hash];
1467 return browserAccessibility_->GetId(); 1467 return browserAccessibility_->GetId();
1468 } 1468 }
1469 1469
1470 - (BOOL)accessibilityShouldUseUniqueId { 1470 - (BOOL)accessibilityShouldUseUniqueId {
1471 return YES; 1471 return YES;
1472 } 1472 }
1473 1473
1474 @end 1474 @end
1475 1475
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation_internal.idl ('k') | extensions/common/api/virtual_keyboard_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698