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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |