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

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

Issue 780553002: Switch content/ to use AX_STATE_DISABLE instead of AX_STATE_ENABLED. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing Created 5 years, 8 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
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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 return nil; 329 return nil;
330 } 330 }
331 331
332 - (NSString*)dropeffect { 332 - (NSString*)dropeffect {
333 return NSStringForStringAttribute( 333 return NSStringForStringAttribute(
334 browserAccessibility_, ui::AX_ATTR_DROPEFFECT); 334 browserAccessibility_, ui::AX_ATTR_DROPEFFECT);
335 } 335 }
336 336
337 - (NSNumber*)enabled { 337 - (NSNumber*)enabled {
338 return [NSNumber numberWithBool: 338 return [NSNumber numberWithBool:
339 GetState(browserAccessibility_, ui::AX_STATE_ENABLED)]; 339 !GetState(browserAccessibility_, ui::AX_STATE_DISABLED)];
340 } 340 }
341 341
342 - (NSNumber*)expanded { 342 - (NSNumber*)expanded {
343 return [NSNumber numberWithBool: 343 return [NSNumber numberWithBool:
344 GetState(browserAccessibility_, ui::AX_STATE_EXPANDED)]; 344 GetState(browserAccessibility_, ui::AX_STATE_EXPANDED)];
345 } 345 }
346 346
347 - (NSNumber*)focused { 347 - (NSNumber*)focused {
348 BrowserAccessibilityManager* manager = browserAccessibility_->manager(); 348 BrowserAccessibilityManager* manager = browserAccessibility_->manager();
349 NSNumber* ret = [NSNumber numberWithBool: 349 NSNumber* ret = [NSNumber numberWithBool:
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 if (!browserAccessibility_) 1624 if (!browserAccessibility_)
1625 return [super hash]; 1625 return [super hash];
1626 return browserAccessibility_->GetId(); 1626 return browserAccessibility_->GetId();
1627 } 1627 }
1628 1628
1629 - (BOOL)accessibilityShouldUseUniqueId { 1629 - (BOOL)accessibilityShouldUseUniqueId {
1630 return YES; 1630 return YES;
1631 } 1631 }
1632 1632
1633 @end 1633 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698